From: Mattia B. <mb...@ds...> - 2003-03-20 08:40:45
|
On Thu, 20 Mar 2003, Mark Wardell wrote: >Hi, > >Please help, I am getting nowehere with these validators!! >- Does anyone have any more information on them or working source? >- Why was the PlValidator implemented instead of the Wx::Validator? Implementation details. I caould explain in more detail, but I don't think they are interesting for users. >- How do I actually pass data To and From the window controls? It depends from the control... for a Wx::TextCtrl you use GetValue/SetValue, for other controls, other methods. >- Do I have to manually code the TransferDataToWindow for every panel in a >notebook or can I call InitDialog for the dialog containing the notebook >sizer? I tried this but no luck (nothing happened). my $dlg = MyDialog->new( ... ); $dlg->SetExtraStyle( $dlg->GetExtraStyle | wxWS_EX_VALIDATE_RECURSIVELY ); This is off the top of my head, sorry if it is wrong. >I have attached my simple version of a validator. It looks correct to me (but I haven't wxPerl to test it, here). Regards Mattia |