WxWidgets Window Type

Source: Internet
Author: User
Tags wxwidgets

Window Type

If you do not specify the border type of the window when creating the window, different platforms will have different default values of the border type. On Windows, the default value of the control border is wxsunken_border, indicating that the current system style border is used. You can use a value like wxno_border to overwrite the default value of the system.

Wxsimple_border
A thin border is displayed around the window.

Wxdouble_border
Display a double border.

Wxsunken_border
Display a concave border or use the current window style settings.

Wxraised_border
Display a raised border.

Wxstatic_border
Display a border suitable for static controls. Only Windows platforms are supported.

Wxno_border
No border is displayed.

Wxtransparent_window
Define a transparent window (this window does not receive the paint event). Only Windows platforms are supported.

Wxtab_traversal
This type allows non-dialog windows to support tab traversal.

Wxwants_chars
This type is used to allow a window to receive all keyboard events, including carriage return and tab. Tab is used to traverse controls in a dialog window. If this type is not set, these special button events will not be generated.

Wxfull_repaint_on_resize
By default, wxWidgets does not redraw the entire customer area when the size of the customer area in the window is changed. Setting this type will change wxWidgets's default practice, and refresh the entire customer zone.

Wxvscroll
Display the vertical scroll bar.

Wxhscroll
Displays the horizontal scroll bar.

Wxalways_show_sb
If a window has a scroll bar, when the scroll bar is not required (when the window is large enough and does not need to be used), the scroll bar is prohibited without hiding the scroll bar. This type currently only supports windows and wxWidgets wxuniversal versions.

Wxclip_children
Only Windows platforms are supported. This function is used to eliminate the transient events caused by background erasure of sub-Windows.

Window extension types. These extension types cannot be directly mixed with types, but must be set using the wxwindow: setextrastyle function.

Wxws_ex_validate_recursively
By default, validate, transferdatatowindow, and transferdatafromwindow can only be used in direct subwindows of the window. If this extension type is set, it can be recursively used in each subwindow.

Wxws_ex_block_events
The wxcommandevents event will try matching in its parent window when it cannot be found in the current event table. setting this extension attribute can block this action. The dialog type window sets this type by default. However, if setextrastyle is called by the application class, the default setting may be overwritten.

Wxws_ex_transient
Do not use this window as the parent window of other windows. this type must be used only for instant windows; otherwise, if it is used as the parent window of a dialog or frame window, if the parent window is released before the child window, the system may crash.

Wxws_ex_process_idle
This window should handle all idle events, including those with wxidle_process_specified mode.

Wxws_ex_process_ui_updates
This window will process all UI refresh events, including those with wxupdate_ui_process_specified configured. For more information about page refresh, see Chapter 1.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.