1TextValidator(3)      User Contributed Perl Documentation     TextValidator(3)
2
3
4

NAME

6       Wx::Perl::TextValidator - Perl replacement for wxTextValidator
7

SYNOPSIS

9           my $storage = '';
10           my $validator1 = Wx::Perl::TextValidator->new( '\d', \$storage );
11           my $validator2 = Wx::Perl::TextValidator->new( '[abcdef]' );
12           my $validator3 = Wx::Perl::TextValidator->new( qr/[a-zA-Z]/ );
13
14           my $textctrl = Wx::TextCtrl->new( $parent, -1, "", $pos, $size, $style,
15                                             $validator1 );
16

DESCRIPTION

18       A "Wx::Validator" subclass that allows filtering user input to a
19       "Wx::TextCtrl".
20

METHODS

22           my $validator1 = Wx::Perl::TextValidator->new( $regexp, \$storage );
23           my $validator2 = Wx::Perl::TextValidator->new( $regexp );
24
25       Constructs a new "Wx::Perl::Validator". The first argument must be a
26       regular expression matching a single-character string and is used to
27       validate the field contents and user input. The second argument, if
28       present, is used in TransferDataToWindow/TransferDataToWindow as the
29       source/destination for the fields contents.
30
31         The first argument can be a string as well as a reqular expression
32       object created using C<qr//>.
33
34
35
36perl v5.32.0                      2020-07-28                  TextValidator(3)
Impressum