Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » CDateTime editing behaviour
CDateTime editing behaviour [message #600153] Tue, 24 August 2010 17:12
Marco Maccaferri is currently offline Marco MaccaferriFriend
Messages: 136
Registered: July 2009
Senior Member

our users are asking for some changes in how the CDateTime control
handle edits. This is the request they sent to me (the control is used
to set hours and minutes):

Current behaviour

1. User selects hours’ field
2. Both digits are highlighted, ie there is NOT a cursor
3. User types two digits
4. The focus switches the minutes’ field

New behaviour The hours and minutes fields should be completely
independent. User has to tab or use the mouse to switch from one to the
other. Both fields should be fairly basic entry fields, accepting a max
of two digits. Although on first focus, the contents will be selected
and overwritten by any new entries, a entry cursor should show up after

Entries that will make the time illegal should not be allowed. So if a
user has ‘3’ in the hours field, they can’t add any digits to the right
of the 3 (30, 31, etc).

I was able to disable the automatic switch to the next field, but I
don't understand how to do all other things, the cursor, the max
2-digits and validation.

Any suggestion ?

Previous Topic:CDateTime editing behaviour
Next Topic:Grid: ToolTip and image in ColumnHeader
Goto Forum:

Current Time: Sat Jun 23 18:18:34 GMT 2018

Powered by FUDForum. Page generated in 0.01841 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top