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 » Wed Aug 07, 2013 8:34 am

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: 15174
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxTimePickerCtrl and value not valorized

Post by doublemax » Wed Aug 07, 2013 10:53 am

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 » Wed Aug 07, 2013 12:38 pm

OK!

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

Thanks
Stefania

Post Reply