Frame Style Interactions?

John Clark wrote:

Hi,
Again, I am working through the wxPython In Action book and have some questions on the interactions between frame styles - is there a document somewhere that describes how these styles interact? I am running Python 2.5, wxPython 2.8 Unicode, and Windows XP.
I am seeing behavior such as:
1) Unless wx.SYSTEM_MENU is specified, wx.MAXIMIZE_BOX, wx.MINIMIZE_BOX, wx.CLOSE_BOX have no effect on the frame.

This is dependent on the platform. The wx flags are translated to the native equivalent flags and passed on to the platform to deal with.

2) Unless wx.CAPTION is specified, the panel that is placed in the frame does not correctly size itself on window creation. Resizing the frame after window creation will motivate the panel to size itself to fit the frame.

This sounds like a bug.

3) If any of wx.MAXIMIZE_BOX, wx.MINIMIZE_BOX, or wx.CLOSE_BOX are omitted when wx.SYSTEM_MENU is specified, the task buttons are still displayed on the title bar, but are "greyed out" and disabled.

This is also platform dependent. For example it works as you describe on XP, but IIRC on win2k and earlier the system buttons will not be displayed at all

Are these behaviors (a) expected? and (b) documented anywhere?

I'm not sure how accurate a doc could be since just updating the OS can change the behavior.

ยทยทยท

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