[wx-dev] Re: Fityk GSoC project (wxFileCtrl/custom wxFileDialog)

Marcin Wojdyr wojdyr at gmail.com
Tue May 1 10:01:23 PDT 2007


On 5/1/07, Diaa Sami <diaasami at gmail.com> wrote:

>      Constructor(wxWindow *parent,
>                  wxString& defaultDir,
>                  wxString& defaultFile,
>                  wxString& wildCard,
>                  long style,
>                  wxPoint& pos,
>                  wxSize& sz);

const wxWindowID id = -1

Could you propose "Window styles"?

>
>      Set/Get Path(const wxString& path);    // set/get the current folder of the control.
>      Set/Get Directory(wxString& dir);
>      Set/Get Filename(wxString& name);    // for single-selection
>      Set/Get Wildcard(wxString& wildCard);
>      ShowHidden(bool show);
>
>      // for multiple-selection
>      Set/Get Paths(wxArrayString& paths);
>      Set/Get Filenames(wxArrayString& files);

IMHO GetFilter and GetFilterIndex would be useful, I'm not sure about
setters and defaultFilter in ctor.

> for Windows, there's no file chooser control provided, In the beginning I thought about hosting an
> IShellView and implementing ICommDlgBrowser and IShellBrowser as shown here
> http://www.codeproject.com/shell/explorer.asp, however recently I started to refrain from this idea
> as it has minor problems(and I think more will appear as we go on), and it's not meant for this, the
> other, longer but safer idea is to do something like wxDirCtrl but make it look as native as
> possible for Win32.

Can anyone comment on this? I'm rather ignorant about winapi.

Thanks,
Marcin

-- 
Marcin Wojdyr | http://www.unipress.waw.pl/~wojdyr/




More information about the wx-dev mailing list