Re: [Fxruby-users] Date/Time Controls?
Status: Inactive
Brought to you by:
lyle
From: Stef <st...@ch...> - 2004-01-13 20:54:33
|
> Hi all, > Hello Martin, > I need 2 textfield type controls - one which can accept a date (e.g. > 01-01-2000), and the other which can accept a time (e.g. 12:15). Their > functionality needs to be similar to the microsoft Masked Edit control. > > Before i start wrestling with Fox and writing my own (based on an FXTextField > I suppose), I am just wondering if such a thing already exists? > Well, there is nothing in the base 1.0 Fox and i dont -think- that there is anyting in 1.1.x Fox (please feel free to correct if thats wrong ;), however, recently a project i was working on called for a date/time widget almost the same, well, you will see what i ended up with. It may not be 100% what you are after, however it does remind me of the gnome v1.x datetime widget, which is what i was after. It also includes some sanity checks (end date cant be before start date, hour cant be over 23, minutes cant be over 59, etc etc :) hope this helps. -extensive- documentation is contained inside :) regards Stef |