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 #554914] Tue, 24 August 2010 17:12
Marco Maccaferri is currently offline Marco MaccaferriFriend
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.
Previous Topic:[Paperclips] is possible a Print composed by a TextPrint and GridPrint
Next Topic:CDateTime editing behaviour
Goto Forum:
  


Current Time: Fri Apr 19 04:27:51 GMT 2024

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

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

Back to the top