wxDirSelector not modal

Riccardo Cohen rcohen at articque.com
Mon Feb 18 09:50:03 PST 2008


I tried to give one parent, and yes the dir selector is modal for this 
parent, but unfortunately it is not modal for the parent of the parent.
Same for file selector.

On mac the dir/file selector is modal for the whole application (even if 
I have several wxFrame)

Is there any way to have the same behaviour on windows ?

Thanks

Florent Lejeune wrote:
> You're right : I was not giving the parent window to the wxDirSelector 
> function... It works fine now.
> 
> Thank you for your help !
> 
> Regards,
> 
> Florent Lejeune
> 
> 
> Vadim Zeitlin a écrit :
>> [please don't post in HTML [only], this is really unnecessary, thanks]
>>
>> On Fri, 15 Feb 2008 15:36:38 +0100 Florent Lejeune 
>> <flejeune at articque.com> wrote:
>>
>> FL> Anyway the dialogs sample uses the wxDirDialog class so I've 
>> tested it
>> FL> in my current project and it works fine : the window is modal.
>>
>>  Seeing that wxDirSelector looks like this
>>
>> wxString wxDirSelector(const wxString& message,
>>                        const wxString& defaultPath,
>>                        long style,
>>                        const wxPoint& pos,
>>                        wxWindow *parent)
>> {
>>     wxString path;
>>
>>     wxDirDialog dirDialog(parent, message, defaultPath, style, pos);
>>     if ( dirDialog.ShowModal() == wxID_OK )
>>     {
>>         path = dirDialog.GetPath();
>>     }
>>
>>     return path;
>> }
>>
>>  I really don't understand how can it not work if wxDirDialog does 
>> work...
>> You must not be telling us everything.
>>
>>  Regards,
>> VZ
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> 
> 

-- 
Très cordialement,

Riccardo Cohen
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49




More information about the wx-users mailing list