STAY_ON_TOP and FileSelector (wxmac2.9)

Riccardo Cohen rcohen at articque.com
Thu Mar 6 00:38:30 PST 2008


(sorry for the previous empty mail)

The dialog has the main (aui) frame as parent and is not modal.

I tried to add wxSTAY_ON_TOP to the fileselector flags, which are passed 
to the filedialog style, it was still under the dialog

wxFRAME_FLOAT_ON_PARENT was apparently the good choice, but it seems to 
work only for frames, not dialogs, and my dialog continue to go under 
the main frame.

I'll make an example

Stefan Csomor wrote:
> Hi Riccardo 
> 
> is the dialog having the main frame as parent ? is it modal ? would
> wxFRAME_FLOAT_ON_PARENT help ? if everything fails, could you make a minimal
> sample with just the layering of windows ? does it fail the same way under
> 2.8 ?
> 
> 
> On 05.03.08 16:28, "Riccardo Cohen" <rcohen at articque.com> wrote:
> 
>> Hello
>> I have a dialog with wxSTAY_ON_TOP flag. If I launch a wxFileSelector()
>> from this dialog, the file selector goes under the dialog.
>> Is there any way to have the file selector above ?
>>
>> The dialog has wxSTAY_ON_TOP because it must always be over the main
>> frame, maybe there is another way of doing that ? wxMiniFrame is an
>> alternative, but I would like to avoid rewriting my dialog, while it
>> works all right on linux and windows...
>>
>> thanks for any help
> 

-- 
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