PushButtonStyle Enumeration
Description
PushButton styles.
Members
| Member | Description |
|---|---|
| xtpButtonNormal | Normal push button. |
| xtpButtonDropDown | Dropdown button. Button will have an arrow indicating it has a dropdown. The dropdown will appear under the button. |
| xtpButtonDropDownRight | Dropdown button. Button will have an arrow indicating it has a dropdown. The dropdown will appear to the right of the button. |
| xtpButtonSplitDropDown | Split button. Button will be split into a "button" part and "arrow" part. The "arrow" part will have an arrow indicating it has a dropdown. The dropdown will appear under the button when the "arrow" part is clicked. |
Remarks
The PushButton.Style uses flags from the PushButtonStyle enumeration to set the style of the button.
Using xtpButtonNormal will create a normal button.
The DropDown event is used so you can display a popup menu for the button.
If the Style is set to xtpButtonDropDown or xtpButtonDropDownRight, the DropDown event is fired when the button is clicked anywhere on the button.
If the Style is set to xtpButtonSplitDropDown, the DropDown event is only fired when the "arrow" part of the split button is clicked. The Click event will be fired when the "button" part of the split button is clicked.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.