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: msoori.lggi.com

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.

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


Current Time: Fri Nov 28 06:15:50 GMT 2014

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

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