[wxruby-users] number input type

Fabio Petrucci fabio.petrucci at gmail.com
Fri Oct 3 07:24:11 EDT 2008


Too fast!!

thank you Alex. :)

bio.

On Fri, Oct 3, 2008 at 12:22 PM, Alex Fenton <alex at pressure.to> wrote:

> 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
>
>
> _______________________________________________
> wxruby-users mailing list
> wxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20081003/eafe0c22/attachment.html>


More information about the wxruby-users mailing list