Hi,
I'd like to use wxspinctrl.
I have found 2 issue:
1) there isn't the wxTE_RIGHT (for numeric is a must)
2) spinctr->SetValidator( wxTextValidator(wxFILTER_NUMERIC) ) doesn't work
Has anybody found the same ?
It's by design ?
Tim
wxSpinCtrl issue ?
Yep, this control is very poor when You want to create program that check what user put into field. On windows You can catch EVT_TEXT and in function reacting on event get text by event.GetText() - but this only works on windows.
Unfortunatly it is no function that return string from field, only number, and when user put example "some_text_not_numer" function GetValue() returns 0, so You can't know it is 0, some text or empty field
I use normal wxTextCtrl with wxTextValidator(wxFILTER_NUMERIC))
Regards
Bundy
Unfortunatly it is no function that return string from field, only number, and when user put example "some_text_not_numer" function GetValue() returns 0, so You can't know it is 0, some text or empty field

I use normal wxTextCtrl with wxTextValidator(wxFILTER_NUMERIC))
Regards
Bundy
"Fate rewards prepared mind"
Quote from movie "Liberator 2"
Quote from movie "Liberator 2"