From: James L. <jl...@bi...> - 2002-07-03 09:44:46
|
DH, No, not to validate Perl, but to implement wxValidators in Perl. wxValidators allow the association of a variable (in our case, a Perl variable) with a control so that the control gets automatically populated with the contents of the variable, and the variable gets automatically updated when the OK button is clicked on the dialog (and NOT updated if the Cancel button is clicked). In addition, the validator can have validation associated with it, which gets called when the wxDialog->Validate method is called. This all happens automatically if the control is on a wxDialog-derived window, and can be implemented manually with a few Wx function/method calls if the control is on a frame. For more details, there's good documentation on wxValidators in the wxWindows docs. Does this make more sense now? Regards, James ----- Original Message ----- From: "DH" <cra...@ya...> To: "James Lavery" <jl...@bi...> Cc: <wxp...@li...> Sent: Wednesday, July 03, 2002 10:33 AM Subject: Re: [wxperl-users] Perl validators > Say what now? > What exactly will be the purpose of the modules, to validate Perl? > ( it's unclear ) > > --- James Lavery <jl...@bi...> wrote: > > Hi Mattia, > > I've started coding a generic and a text validator for wxPerl, as I want to > > use them in my project. > > > > Would you (or others) be interested in these being contributed to the wxPerl > > community? If so, how do we want to manage it - as part of wxPerl, or just > > a contribution to CPAN? > > > > With regard to package naming, I'm intending to name them as follows: > > Wx::Perl::GenericValidator > > Wx::Perl::TextValidator > > etc... > > > > I'm intending the TextValidator validation to be controlled mainly by a > > regexp to validate against, to make it flexible, but also to match the > > features of the native wxValidator, if possible (though a lot of these can > > be achieved by a regexp, I think). > > > > Other suggestions/opinions regarding naming conventions are welcome - > > nothing's cast in stone yet! > > > > Regards, > > > > James > > > __________________________________________________ > Do You Yahoo!? > Sign up for SBC Yahoo! Dial - First Month Free > http://sbc.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > No, I will not fix your computer. > http://thinkgeek.com/sf > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users |