Skip to main content

TcxCustomButton.Kind Property

Specifies button behavior.

Declaration

property Kind: TcxButtonKind read; write; default cxbkStandard;

Property Value

Type Default
TcxButtonKind cxbkStandard

Remarks

Use the Kind property to specify button behavior. If this property value is default (cxbkStandard), the ExpressButton functions as a standard button. If the Kind property is set to cxbkDropDown, cxbkDropDownButton, or cxbkOfficeDropDown, the dropdown menu specified via the DropDownMenu property or an OnDropDownMenuPopupEx event handler appears when a user clicks the button (or the dropdown button located at the right side of this button). The horizontal position of the dropdown menu is controlled by the PopupAlignment property.

Value

Button Appearance

Meaning

cxbkStandard

This button is similar to a standard VCL TButton.

cxbkDropDown

Pressing this button displays the dropdown menu.

cxbkDropDownButton

This button displays a dropdown button at the right side, which when clicked invokes the dropdown menu.

cxbkCommandLink

This buttons mimics the look & feel of command links found in Windows Vista (or later) native applications. Use the button’s Description property to specify the command link’s supplemental explanation.

The button displays a green arrow next to its caption unless you have specified a custom image.

The SpeedButtonOptions, OptionsImage.Layout properties have no effect on this button.

cxbkOfficeDropDown

This button mimics the look & feel of buttons with dropdown menus found in Microsoft Office 2010 (or later). Pressing the button displays the dropdown menu. You can optionally specify the button’s description via its Description property.

If the Kind property is set to cxbkDropDown, cxbkDropDownButton, or cxbkOfficeDropDown you can respond to invoking the dropdown menu by handling the button’s OnDropDownMenuPopupEx or OnDropDownMenuPopup event, or the OnPopup event of the dropdown menu.

The default value of the Kind property is cxbkStandard.

See Also