wxTimePickerCtrl and value not valorized

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
stefania
Knows some wx things
Knows some wx things
Posts: 26
Joined: Wed Jul 20, 2005 9:08 am

wxTimePickerCtrl and value not valorized

Post by stefania »

HI!
I need to have a wxTimePickerCtrl with value not valorized, is there a way to do it?

In wxDatePickerCtrl there is wxDP_ALLOWNONE style, but in wxTimePickerCtrl there is not

Thanks
Stefania
User avatar
doublemax
Moderator
Moderator
Posts: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxTimePickerCtrl and value not valorized

Post by doublemax »

Trying to set the date to wxInvalidDateTime causes the error: "this control requires a valid date".

So i think it's not possible with this control.
Use the source, Luke!
stefania
Knows some wx things
Knows some wx things
Posts: 26
Joined: Wed Jul 20, 2005 9:08 am

Re: wxTimePickerCtrl and value not valorized

Post by stefania »

OK!

If I use a wxTextCtrl for time value, How can I define a personalized wxValidator for it?

Thanks
Stefania
Post Reply