CDateTime editing behaviour [message #554914] |
Tue, 24 August 2010 17:12 |
Marco Maccaferri Messages: 147 Registered: July 2009 |
Senior Member |
|
|
Hi,
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
that.
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 ?
Regards,
Marco.
|
|
|
Powered by
FUDForum. Page generated in 0.01760 seconds