SpinCtrl with empty value?
SpinCtrl with empty value?
Does the SpinCtrl allow and empty value? I mean the text field is empty.
Re: SpinCtrl with empty value?
Have you tried to set a validator to the spinctrl?
This should allow empty value to be set/get as "0" - otherwise I do not think an empty value is allowed.
Code: Select all
wxIntegerValidator<int> intval;
intval.SetStyle(wxNUM_VAL_ZERO_AS_BLANK);
spinctrl->SetValidator(intval);
I have a bad habbit of not testing the code I post
Re: SpinCtrl with empty value?
This isn't full implemented in wxPython/wxPhoenix.
And it is a workaround.
An empty value is NULL/None/the-definied-nothing.
'0' or 0 is a value.
This is a big difference and I want my gui to display that.
And it is a workaround.
An empty value is NULL/None/the-definied-nothing.
'0' or 0 is a value.
This is a big difference and I want my gui to display that.