ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



TextValidator(3)                     User Contributed Perl Documentation                    TextValidator(3)



NAME
       Wx::Perl::TextValidator - Perl replacement for wxTextValidator

SYNOPSIS
           my $storage = '';
           my $validator1 = Wx::Perl::TextValidator->new( '\d', \$storage );
           my $validator2 = Wx::Perl::TextValidator->new( '[abcdef]' );
           my $validator3 = Wx::Perl::TextValidator->new( qr/[a-zA-Z]/ );

           my $textctrl = Wx::TextCtrl->new( $parent, -1, "", $pos, $size, $style,
                                             $validator1 );

DESCRIPTION
       A "Wx::Validator" subclass that allows filtering user input to a "Wx::TextCtrl".

METHODS
           my $validator1 = Wx::Perl::TextValidator->new( $regexp, \$storage );
           my $validator2 = Wx::Perl::TextValidator->new( $regexp );

       Constructs a new "Wx::Perl::Validator". The first argument must be a regular expression matching a
       single-character string and is used to validate the field contents and user input. The second
       argument, if present, is used in TransferDataToWindow/TransferDataToWindow as the source/destination
       for the fields contents.

         The first argument can be a string as well as a reqular expression
       object created using C<qr//>.



perl v5.8.8                                      2005-08-15                                 TextValidator(3)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.