Number input type


#1

Hi all,
is there any option to limit input type (wxTextCtrl) to accept only
number?

thanks,

regards.

bio.


#2

hi

Fabio P. wrote:

is there any option to limit input type (wxTextCtrl) to accept only
number?

tx = Wx::TextCtrl.new(self)
tx.validator = Wx::TextValidator.new(Wx::FILTER_NUMERIC)

cheers
alex


#3

Too fast!!

thank you Alex. :slight_smile:

bio.