[wxFileDialog] Adding controls
Marco Cavallini
wxuser at koansoftware.com
Mon Oct 1 09:43:59 PDT 2007
Mario Figueiredo ha scritto:
> 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() == wxID_OK) {
> if ( foo.Crc() && foo.IsValid() ) {
> /*...*/
> } else {
> /*...*/
> }
> }
>
Here at KOAN we did almost the same creating a customized dialog file
selector including new filelds and thumbnails preview 'simply'
inheriting from wxGenericDirCtrl from wxWidgets book.
best regards
--
Marco Cavallini
Koan s.a.s. - Bergamo - Italia
Embedded and Real-Time Software Engineering
http://www.KoanSoftware.com - http://www.KaeilOS.com
More information about the wx-users
mailing list