Re: [Boa Constr] How to disable the maximize button on a form ?
Status: Beta
Brought to you by:
riaan
From: Riaan B. <riaan@e.co.za> - 2006-05-30 13:18:45
|
Hi Endre, Endre Szabo wrote: > > Hello > > How to disable the maximize button on a frame or > dialog? > FRAME_DEFAULT_STYLE style flag set to true, even > MAXIMIZE_BOX flag set to false, the button remains > enabled. > Both flags set to false, the maximize button is > disabled but the close button (x) is disabled too... This last step is correct, the wx.CLOSE flag is just missing from the styles list in the Inspector. I've updated the style list to contain this flag and other missing ones. CVS is still not working, so here are the changes: Companions/FrameCompanions.py, about line 105 self.windowStyles = ['wx.DEFAULT_FRAME_STYLE', 'wx.ICONIZE', 'wx.MINIMIZE', 'wx.MAXIMIZE', 'wx.CLOSE', 'wx.STAY_ON_TOP', 'wx.SYSTEM_MENU', 'wx.RESIZE_BORDER', 'wx.FRAME_FLOAT_ON_PARENT', 'wx.FRAME_TOOL_WINDOW', 'wx.FRAME_NO_TASKBAR', 'wx.FRAME_SHAPED', 'wx.FRAME_EX_METAL'] + self.windowStyles Cheers, Riaan. |