xtd 0.2.0
Loading...
Searching...
No Matches
button styles

Definition

button styles definitions.

Warning
Internal use only

Variables

constexpr size_t BS_PUSHBUTTON
 Creates a push button that posts a WM_COMMAND message to the owner window when the user selects the button.
 
constexpr size_t BS_DEFPUSHBUTTON
 Creates a push button that behaves like a BS_PUSHBUTTON style button, but has a distinct appearance. If the button is in a dialog box, the user can select the button by pressing the ENTER key, even when the button does not have the input focus. This style is useful for enabling the user to quickly select the most likely (default) option.
 
constexpr size_t BS_CHECKBOX
 Creates a small, empty check box with text. By default, the text is displayed to the right of the check box. To display the text to the left of the check box, combine this flag with the BS_LEFTTEXT style (or with the equivalent BS_RIGHTBUTTON style).
 
constexpr size_t BS_AUTOCHECKBOX
 Creates a button that is the same as a check box, except that the check state automatically toggles between checked and cleared each time the user selects the check box.
 
constexpr size_t BS_RADIOBUTTON
 Creates a small circle with text. By default, the text is displayed to the right of the circle. To display the text to the left of the circle, combine this flag with the BS_LEFTTEXT style (or with the equivalent BS_RIGHTBUTTON style). Use radio buttons for groups of related, but mutually exclusive choices.
 
constexpr size_t BS_3STATE
 Creates a button that is the same as a check box, except that the box can be grayed as well as checked or cleared. Use the grayed state to show that the state of the check box is not determined.
 
constexpr size_t BS_AUTO3STATE
 Creates a button that is the same as a three-state check box, except that the box changes its state when the user selects it. The state cycles through checked, indeterminate, and cleared.
 
constexpr size_t BS_GROUPBOX
 Creates a rectangle in which other controls can be grouped. Any text associated with this style is displayed in the rectangle's upper left corner.
 
constexpr size_t BS_USERBUTTON
 Obsolete, but provided for compatibility with 16-bit versions of Windows. Applications should use BS_OWNERDRAW instead.
 
constexpr size_t BS_AUTORADIOBUTTON
 Creates a button that is the same as a radio button, except that when the user selects it, the system automatically sets the button's check state to checked and automatically sets the check state for all other buttons in the same group to cleared.
 
constexpr size_t BS_PUSHBOX
 Creates a push button without button face or frame (only textappears) that posts a WM_COMMAND message to the owner window when the user selects the button.
 
constexpr size_t BS_OWNERDRAW
 Creates an owner-drawn button. The owner window receives a WM_DRAWITEM message when a visual aspect of the button has changed. Do not combine the BS_OWNERDRAW style with any other button styles.
 
constexpr size_t BS_TYPEMASK
 Do not use this style. A composite style bit that results from using the OR operator on BS_* style bits. It can be used to mask out valid BS_* bits from a given bitmask. Note that this is out of date and does not correctly include all valid styles. Thus, you should not use this style.
 
constexpr size_t BS_LEFTTEXT
 Places text on the left side of the radio button or check box when combined with a radio button or check box style. Same as the BS_RIGHTBUTTON style.
 
constexpr size_t BS_TEXT
 Specifies that the button displays text.
 
constexpr size_t BS_ICON
 Specifies that the button displays an icon. See the Remarks section for its interaction with BS_BITMAP.
 
constexpr size_t BS_BITMAP
 Specifies that the button displays a bitmap. See the Remarks section for its interaction with BS_ICON.
 
constexpr size_t BS_LEFT
 Left-justifies the text in the button rectangle. However, if the button is a check box or radio button that does not have the BS_RIGHTBUTTON style, the text is left justified on the right side of the check box or radio button.
 
constexpr size_t BS_RIGHT
 Right-justifies text in the button rectangle. However, if the button is a check box or radio button that does not have the BS_RIGHTBUTTON style, the text is right justified on the right side of the check box or radio button.
 
constexpr size_t BS_CENTER
 Centers text horizontally in the button rectangle.
 
constexpr size_t BS_TOP
 Places text at the top of the button rectangle.
 
constexpr size_t BS_BOTTOM
 Places text at the bottom of the button rectangle.
 
constexpr size_t BS_VCENTER
 Places text in the middle (vertically) of the button rectangle.
 
constexpr size_t BS_PUSHLIKE
 Makes a button (such as a check box, three-state check box, or radio button) look and act like a push button. The button looks raised when it isn't pushed or checked, and sunken when it is pushed or checked.
 
constexpr size_t BS_MULTILINE
 Wraps the button text to multiple lines if the text string is too long to fit on a single line in the button rectangle.
 
constexpr size_t BS_NOTIFY
 Enables a button to send BN_KILLFOCUS and BN_SETFOCUS notification codes to its parent window.
 
constexpr size_t BS_FLAT
 Specifies that the button is two-dimensional; it does not use the default shading to create a 3-D image.
 
constexpr size_t BS_RIGHTBUTTON
 Positions a radio button's circle or a check box's square on the right side of the button rectangle. Same as the BS_LEFTTEXT style.
 
constexpr size_t BS_SPLITBUTTON
 Creates a split button. A split button has a drop down arrow.
 
constexpr size_t BS_DEFSPLITBUTTON
 Creates a split button that behaves like a BS_PUSHBUTTON style button, but also has a distinctive appearance. If the split button is in a dialog box, the user can select the split button by pressing the ENTER key, even when the split button does not have the input focus. This style is useful for enabling the user to quickly select the most likely (default) option.
 
constexpr size_t BS_COMMANDLINK
 Creates a command link button that behaves like a BS_PUSHBUTTON style button, but the command link button has a green arrow on the left pointing to the button text. A caption for the button text can be set by sending the BCM_SETNOTE message to the button.
 
constexpr size_t BS_DEFCOMMANDLINK
 Creates a command link button that behaves like a BS_PUSHBUTTON style button. If the button is in a dialog box, the user can select the command link button by pressing the ENTER key, even when the command link button does not have the input focus. This style is useful for enabling the user to quickly select the most likely (default) option.
 

Variable Documentation

◆ BS_PUSHBUTTON

constexpr size_t BS_PUSHBUTTON
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a push button that posts a WM_COMMAND message to the owner window when the user selects the button.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_DEFPUSHBUTTON

constexpr size_t BS_DEFPUSHBUTTON
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a push button that behaves like a BS_PUSHBUTTON style button, but has a distinct appearance. If the button is in a dialog box, the user can select the button by pressing the ENTER key, even when the button does not have the input focus. This style is useful for enabling the user to quickly select the most likely (default) option.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_CHECKBOX

constexpr size_t BS_CHECKBOX
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a small, empty check box with text. By default, the text is displayed to the right of the check box. To display the text to the left of the check box, combine this flag with the BS_LEFTTEXT style (or with the equivalent BS_RIGHTBUTTON style).

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_AUTOCHECKBOX

constexpr size_t BS_AUTOCHECKBOX
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a button that is the same as a check box, except that the check state automatically toggles between checked and cleared each time the user selects the check box.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_RADIOBUTTON

constexpr size_t BS_RADIOBUTTON
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a small circle with text. By default, the text is displayed to the right of the circle. To display the text to the left of the circle, combine this flag with the BS_LEFTTEXT style (or with the equivalent BS_RIGHTBUTTON style). Use radio buttons for groups of related, but mutually exclusive choices.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_3STATE

constexpr size_t BS_3STATE
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a button that is the same as a check box, except that the box can be grayed as well as checked or cleared. Use the grayed state to show that the state of the check box is not determined.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_AUTO3STATE

constexpr size_t BS_AUTO3STATE
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a button that is the same as a three-state check box, except that the box changes its state when the user selects it. The state cycles through checked, indeterminate, and cleared.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_GROUPBOX

constexpr size_t BS_GROUPBOX
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a rectangle in which other controls can be grouped. Any text associated with this style is displayed in the rectangle's upper left corner.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_USERBUTTON

constexpr size_t BS_USERBUTTON
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Obsolete, but provided for compatibility with 16-bit versions of Windows. Applications should use BS_OWNERDRAW instead.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_AUTORADIOBUTTON

constexpr size_t BS_AUTORADIOBUTTON
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a button that is the same as a radio button, except that when the user selects it, the system automatically sets the button's check state to checked and automatically sets the check state for all other buttons in the same group to cleared.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_PUSHBOX

constexpr size_t BS_PUSHBOX
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a push button without button face or frame (only textappears) that posts a WM_COMMAND message to the owner window when the user selects the button.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_OWNERDRAW

constexpr size_t BS_OWNERDRAW
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates an owner-drawn button. The owner window receives a WM_DRAWITEM message when a visual aspect of the button has changed. Do not combine the BS_OWNERDRAW style with any other button styles.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_TYPEMASK

constexpr size_t BS_TYPEMASK
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Do not use this style. A composite style bit that results from using the OR operator on BS_* style bits. It can be used to mask out valid BS_* bits from a given bitmask. Note that this is out of date and does not correctly include all valid styles. Thus, you should not use this style.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_LEFTTEXT

constexpr size_t BS_LEFTTEXT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Places text on the left side of the radio button or check box when combined with a radio button or check box style. Same as the BS_RIGHTBUTTON style.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_TEXT

constexpr size_t BS_TEXT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Specifies that the button displays text.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_ICON

constexpr size_t BS_ICON
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Specifies that the button displays an icon. See the Remarks section for its interaction with BS_BITMAP.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_BITMAP

constexpr size_t BS_BITMAP
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Specifies that the button displays a bitmap. See the Remarks section for its interaction with BS_ICON.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_LEFT

constexpr size_t BS_LEFT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Left-justifies the text in the button rectangle. However, if the button is a check box or radio button that does not have the BS_RIGHTBUTTON style, the text is left justified on the right side of the check box or radio button.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_RIGHT

constexpr size_t BS_RIGHT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Right-justifies text in the button rectangle. However, if the button is a check box or radio button that does not have the BS_RIGHTBUTTON style, the text is right justified on the right side of the check box or radio button.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_CENTER

constexpr size_t BS_CENTER
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Centers text horizontally in the button rectangle.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_TOP

constexpr size_t BS_TOP
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Places text at the top of the button rectangle.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_BOTTOM

constexpr size_t BS_BOTTOM
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Places text at the bottom of the button rectangle.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_VCENTER

constexpr size_t BS_VCENTER
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Places text in the middle (vertically) of the button rectangle.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_PUSHLIKE

constexpr size_t BS_PUSHLIKE
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Makes a button (such as a check box, three-state check box, or radio button) look and act like a push button. The button looks raised when it isn't pushed or checked, and sunken when it is pushed or checked.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_MULTILINE

constexpr size_t BS_MULTILINE
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Wraps the button text to multiple lines if the text string is too long to fit on a single line in the button rectangle.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_NOTIFY

constexpr size_t BS_NOTIFY
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Enables a button to send BN_KILLFOCUS and BN_SETFOCUS notification codes to its parent window.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_FLAT

constexpr size_t BS_FLAT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Specifies that the button is two-dimensional; it does not use the default shading to create a 3-D image.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_RIGHTBUTTON

constexpr size_t BS_RIGHTBUTTON
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Positions a radio button's circle or a check box's square on the right side of the button rectangle. Same as the BS_LEFTTEXT style.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_SPLITBUTTON

constexpr size_t BS_SPLITBUTTON
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a split button. A split button has a drop down arrow.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_DEFSPLITBUTTON

constexpr size_t BS_DEFSPLITBUTTON
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a split button that behaves like a BS_PUSHBUTTON style button, but also has a distinctive appearance. If the split button is in a dialog box, the user can select the split button by pressing the ENTER key, even when the split button does not have the input focus. This style is useful for enabling the user to quickly select the most likely (default) option.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_COMMANDLINK

constexpr size_t BS_COMMANDLINK
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a command link button that behaves like a BS_PUSHBUTTON style button, but the command link button has a green arrow on the left pointing to the button text. A caption for the button text can be set by sending the BCM_SETNOTE message to the button.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ BS_DEFCOMMANDLINK

constexpr size_t BS_DEFCOMMANDLINK
constexpr

#include <xtd.forms.native/include/xtd/forms/native/button_styles.hpp>

Creates a command link button that behaves like a BS_PUSHBUTTON style button. If the button is in a dialog box, the user can select the command link button by pressing the ENTER key, even when the command link button does not have the input focus. This style is useful for enabling the user to quickly select the most likely (default) option.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only