Page 1 of 1

wxTimePickerCtrl and value not valorized

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

Re: wxTimePickerCtrl and value not valorized

Posted: Wed Aug 07, 2013 10:53 am
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.

Re: wxTimePickerCtrl and value not valorized

Posted: Wed Aug 07, 2013 12:38 pm
by stefania
OK!

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

Thanks
Stefania