Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » CDateTime bugs
CDateTime bugs [message #583065] Thu, 14 June 2007 18:36
Eclipse UserFriend
Originally posted by:

There is an irritating bug in the nebula CDateTime, so I decided to
investigate it. The bug is that when you have the Analog clock showing
and you drag the minute hand one complete round, the hour snaps back to
the previous hour. The proper behavior for this would be to
advance/retreat the hour depending on if the user user dragging
clockwise or anticlockwise. At first I thought CDateTime must be using
Calander.roll() to achieve this (which has a similar behavior, as
opposed to GregorianCalander.add() which does the proper addition by
incrementing/decrementing the month/year, etc when adding dates, hours,
mins, etc), but after looking at the code, I noticed the fieldSet()
method is checking for the min/max values for the field and setting it
accordingly. Why can't we just use the GregorianCalander.add() to
properly handle the advancing of the larger fields when a small one changes?

While I'm on the subject of bugs, there is no way to get out of the
CDateTime editor, except by pressing Cancel or by clciking on "Today is
...." button or by clicking on a date on the calendar. Is there anyway
to close the CDateTime editor if the user click anywhere outside the
window that CDateTime is displayed in. This would be the behavior
analogous to a combobox.

Previous Topic:cell selection
Next Topic:cell selection
Goto Forum:

Current Time: Sun May 20 17:57:26 GMT 2018

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

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

Back to the top