Page 1 of 1

wxDatePicker

Posted: Wed Jul 10, 2013 1:53 pm
by stefania
Hi!
I need to use wxDatePicker, but in some case I need to set value to 0.
Is there a way to do it?

Thanks

Re: wxDatePicker

Posted: Wed Jul 10, 2013 4:02 pm
by doublemax
What about the wxDP_ALLOWNONE style?
http://docs.wxwidgets.org/trunk/classwx ... _ctrl.html

Re: wxDatePicker

Posted: Thu Jul 11, 2013 7:49 am
by stefania
Thanks very much!

Re: wxDatePicker

Posted: Thu Jul 11, 2013 8:52 am
by stefania
Hi! Another question!

I need to set this value to 0; how can i set checkbox in wxDatePicker to 0?

Thanks

Re: wxDatePicker

Posted: Thu Jul 11, 2013 8:59 am
by doublemax
I haven't tried it, but i'd guess:

Code: Select all

SetValue( wxDefaultDateTime );
You can't set the date to 00-00-0000 as that's no valid date.

Re: wxDatePicker

Posted: Thu Jul 11, 2013 9:17 am
by stefania
Thanks! Now works fine!!!