Page 85      All Pages  All Books
Style
Description
wx. DEFAULT_FRAME_STYLE
As you might expect from the name, this is the default if no style is specified. It is defined as wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER | wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX.
wx.FRAM E_SHAPED
Frames created with this style can use the SetShape() method to create a window with a non-rectangular shape.
wx.FRAM E_TOOL_WINDOW
Makes the frame look like a toolbox window by giving it a smaller titlebar than normal. Under Windows a frame created with this style does not show in the taskbar listing of all open windows.
wx.MAXIMIZE_BOX
Adds a maximize box on the frame, using the system parameters for the look and placement of the box. Also enables maximize functionality in the system menu if applicable.
wx.MINIMIZE_BOX
Adds a minimize box on the frame, using the system parameters for the look and placement of the box. Also enables minimize functionality in the system menu if applicable.
wx.RESIZE_BORDER
Adds a resizable border to the frame.
wx.SIMPLE_BORDER
A plain border without decoration. May not work on all platforms.
wx.SYSTEM_MENU
Adds the system menu (with close, move, resize, etc. functionality, using system look and feel) and the close box to the window. The availability of resize and close operations within this menu depends on the styles wx.MAXIMIZE_BOX, wx.MINIMIZE_BOX and wx.CLOSE_BOX being chosen.
The next four figures show a few common frame styles.
Figure 2.4 was created with wx.DEFAULT_STYLE. Figure 2.5 is a frame created using the non-resizable style combination shown in the previous code snippet.
Figure 2.4 A frame created with the default style
Figure 2.5 A frame created to be non-resizable. Notice the lack of minimize/maximize buttons.

Page 85      All Pages  All Books