Stacking order of windows

Hi,

Is a frame the only window that can be stacked down on win32 ?
I have a wx.Dialog with no parent and wx.DIALOG_NO_PARENT style set.
On *nix I can stack that dialog down using self.Lower() and up using
self.Raise().
No so on win32. I guess I'm missing something here.
Any help is appreciated.

  UC

···

--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417

Uwe C. Schroeder wrote:

Hi,

Is a frame the only window that can be stacked down on win32 ?
I have a wx.Dialog with no parent and wx.DIALOG_NO_PARENT style set.
On *nix I can stack that dialog down using self.Lower() and up using self.Raise().
No so on win32. I guess I'm missing something here.

I would expect it to work, but perhaps there is some rule about modal windows that prevents it... Please enter a bug report about it with category wxMSW and we'll see what happens.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Uwe C. Schroeder wrote:

The window is not even modal - specifically not since modal would block the main window. However the dialogs are loaded using xrc and are custom. Here is the class initializer: Maybe there is an error in that. (may wrap text)

class Diary(wx.Dialog):
    def __init__(self,parent,xres,perspective):
        self._parent=parent
        self._xres=xres
        self._perspective=perspective
        _dlg=wx.PreDialog()
        self._xres.LoadOnDialog(_dlg,None,"Diary")
        _dlg.SetWindowStyleFlag(_dlg.GetWindowStyleFlag() | wx.RESIZE_BORDER|wx.DIALOG_NO_PARENT)
        _dlg.SetTitle("Diary")
        self.this=_dlg.this
        self._setOORInfo(self)
        self.CentreOnParent()
        self.Show()

This probably isn't related but if you are using LoadOnDialog then I don't think you want to use the PreDialog, but have a fully created instance.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!