how to delete the close button (the X on therightmostcorner of the window) on a window

danielle:

======= 2005-03-15 12:22:05 danielle wrote: =======

You are right, it works in a modified MDIDemo

def OnNewWindow(self, evt):
       self.winCount = self.winCount + 1
       win = wx.MDIChildFrame(self, -1, "Child Window: %d" %
self.winCount, style=wx.DEFAULT_FRAME_STYLE &

wx.CLOSE_BOX)

Don't forget the ~

style=wx.DEFAULT_FRAME_STYLE & ~ wx.CLOSE_BOX

= = = = = = = = = = = = = = = = = = = =
      
Bruce Who
HuXuZhao@hotmail.com
2005-03-15