This style is currently implemented for wxMSW, wxGTK and wxUniversal and does nothing on the other platforms. when the size of the window is big enough to not require the scrollbars to navigate it). Wx.ALWAYS_SHOW_SB: If a window has scrollbars, disable them instead of hiding them when they are not needed (i.e. The same limitations as for wx.VSCROLL apply to this style. Wx.HSCROLL: Use this style to enable a horizontal scrollbar.
#Wxwindow findfocus example windows#
Notice that this style cannot be used with native controls which don’t support scrollbars nor with top-level windows in most ports. Wx.VSCROLL: Use this style to enable a vertical scrollbar. Since this behaviour is now the default, the style is now obsolete and no longer has an effect. Wx.NO_FULL_REPAINT_ON_RESIZE: On Windows, this style used to disable repainting the window completely when its size is changed. If you need to use this style in order to get the arrows or etc., but would still like to have normal keyboard navigation take place, you should call Navigate in response to the key events for Tab and Shift-Tab. Wx.WANTS_CHARS: Use this to indicate that the window wants to get all char/key events for all keys - even for keys like TAB or ENTER which are usually used for dialog navigation and which wouldn’t be generated without this style. It should almost never be used in the application code. Wx.TAB_TRAVERSAL: This style is used by wxWidgets for the windows supporting TAB navigation among their children, such as wx.Dialog and wx.Panel. Wx.TRANSPARENT_WINDOW: The window is transparent, that is, it will not receive paint events. Wx.BORDER_DOUBLE: This style is obsolete and should not be used. wx.NO_BORDER is the old name for this style. Wx.BORDER_NONE: Displays no border, overriding the default border style for the window. For more information for themed borders on Windows, please see Themed borders on Windows. On Windows, this will be a themed border on most other platforms a sunken border will be used. Wx.BORDER_THEME: Displays a native border suitable for a control, on the current platform. wx.STATIC_BORDER is the old name for this style.
Wx.BORDER_STATIC: Displays a border suitable for a static control.
wx.RAISED_BORDER is the old name for this style. Wx.BORDER_RAISED: Displays a raised border. wx.SUNKEN_BORDER is the old name for this style. Wx.BORDER_SUNKEN: Displays a sunken border. wx.SIMPLE_BORDER is the old name for this style. Wx.BORDER_SIMPLE: Displays a thin border around the window. Wx.BORDER_DEFAULT: The window class will decide the kind of border to show, if any. This class supports the following styles: To allow overriding them in the derived class, wxWidgets uses a unique protected virtual DoGetXXX() method and all GetXXX() ones are forwarded to it, so overriding the former changes the behaviour of the latter.
In this case, the overloads are non-virtual because having multiple virtual functions with the same name results in a virtual function name hiding at the derived class level (in English, this means that the derived class has to override all overloaded variants if it overrides any of them). Please see the window deletion overview for more information.Īlso note that in this, and many others, wxWidgets classes some GetXXX() methods may be overloaded (as, for example, wx.Window.GetSize or wx.Window.GetClientSize ). Please note that all children of the window will be deleted automatically by the destructor before the window itself is deleted which means that you don’t have to worry about deleting them manually. Sizers and device contexts are not, however, as they don’t appear on screen themselves. Wx.Window is the base class for all windows and represents any visible object on screen.Īll controls, top level windows and so on are windows.