Community
Participate
Working Groups
Build ID: M20080221-1800 Steps To Reproduce: 1.Create CDateTime contol in text mode with spinner and date pattern = "dd.MM.yyyy" 2.Select month field 3.Press spinner UP button Expected result is month must be incremented according to the control description (If the style DROP_DOWN is not set and SPINNER is, then a Spinner widget can be used to increment and decrement the field). Actual result: field selection is changed to 'dd' field. Day is incremented
Not sure if this breaks other things, but by making the following change in CDateTime.java I got the spinner to work correct. At about line 250 the listener sets for SWT.FocusOut the activeField to FIELD_NONE, this is the cause of the problem. If this doesn't happen the spinner works. Listener textListener = new Listener() { public void handleEvent(Event event) { switch (event.type) { ... case SWT.FocusOut: if(!rightClick && !internalFocusShift) { // setActiveField(FIELD_NONE); updateText(); } break; case SWT.KeyDown:
Is this fixed ?
Same happens for me when I use CDT.TIME_SHORT: when spinning while yhe minutes are selected the hours change.
What I noted in my previous comment was already reported as bug 320656.
Pushed to master. http://git.eclipse.org/c/nebula/org.eclipse.nebula.git/commit/?id=85b9d3049aa848ba786a5882f9f2c6a13bf93eff thanks for reporting