wxDirPickerCtrl validator
James Bigler
bigler at cs.utah.edu
Wed Jul 11 07:21:25 PDT 2007
James Bigler wrote:
> I tried adding a wxGenericValidator to it to transfer the directory path
> back and forth, but it doesn't seem to work.
[snip]
> filenameCtrl->SetValidator( wxGenericValidator(&filename) );
>
[snip]
So it looks like wxGenericValidator doesn't know about wxPickerBase. It
seems like it should. Would the developers accept a patch to do this in
wxGenericValidator.
> I tried attaching the validator the wxTextCtrl passed back via
> wxDirPickerCtrl::GetTextCtrl(), but that didn't work either.
Perhaps creating a special wxPickerBase validator that just applies a
wxValidator to the wxTextCtrl component would be a better solution.
For my current project I created a Picker validator that inherits from
wxGenericValidator and does the copying of the data via the wxTextCtrl.
Any thoughts?
James
More information about the wx-users
mailing list