STAY_ON_TOP and FileSelector (wxmac2.9)

Stefan Csomor csomor at advancedconcepts.ch
Thu Mar 6 00:08:25 PST 2008


Hi

On 05.03.08 23:51, "Vadim Zeitlin" <vadim at wxwidgets.org> wrote:

> On Wed, 05 Mar 2008 16:28:13 +0100 Riccardo Cohen <rcohen at articque.com> wrote:
> 
> RC> I have a dialog with wxSTAY_ON_TOP flag. If I launch a wxFileSelector()
> RC> from this dialog, the file selector goes under the dialog.
> RC> Is there any way to have the file selector above ?
> 
>  Does creating wxFileDialog with wxSTAY_ON_TOP style work? I suppose it
> might not but I didn't check....
> 
>  Other than this, maybe any dialog having a wxSTAY_ON_TOP as parent should
> automatically be given wxSTAY_ON_TOP style s after all a dialog should be
> above its parent in Z-order and this won't happen otherwise. OTOH I could
> easily miss some new problems this would introduce.

the best way would be to have a standard dialog that gets opened with a
parent as a sheet on that dialog, that way they are correctly connected by
the OS, or at least they should be. FloatOnParent might help, as it puts the
first dialog into a better layer for this to work, and also I haven't had
time to closely look at the frame-modality that apparently exists under
wxMSW without me ever realizing so ...

Best,

Stefan







More information about the wx-users mailing list