[wxFileDialog] Adding controls
Mario Figueiredo
marfig at gmail.com
Mon Oct 1 06:12:23 PDT 2007
Hello all,
One of the things I would like to offer my users was a slightly altered
wxFileDialog under the Windows implementation. On my case I would need this
new class to include an extra wxTextCtrl and code the functionality to go
with it.
Creating a new dialog where I insert a wxGenericDirCtrl is not to my liking
since this radically alters the dialog aspect. I would prefer, as seen on
some applications, the exact same look and feel of the standard wxFileDialog
under Windows, but with an added element; the aforementioned wxTextCtrl at
the bottom of the window.
Can I reach this functionality with the help of wxWidgets object framework
or do I have to go deeper?
In case you are wondering, the text control would optionally accept a
checksum and the file to be opened would be validated against this checksum
on wxID_OK. Private member variables and their public assessors would reveal
the result of the validation routine:
TheNewFileDialog foo( /*...*/);
if (foo.ShowModal() =3D=3D wxID_OK) {
if ( foo.Crc() && foo.IsValid() ) {
/*...*/
} else {
/*...*/
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20071001/90a=
a3985/attachment.htm
More information about the wx-users
mailing list