[wxruby-users] number input type

Alex Fenton alex at pressure.to
Fri Oct 3 06:22:47 EDT 2008


hi

Fabio Petrucci 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




More information about the wxruby-users mailing list