EntrySet.Controls Namespace
CommandButton Component
|
|
The CommandButton control allows the user to click on it to perform an action. Unlike Button the list of commands can be displayed on the right side by the click on the arrow.

PureComponent CommandButton control is basically multifunctional Button. It works same as button, but besides it has the arrow. When you click on the CommandButton, it causes the Click. If you click on the arrow on the left side, the menu displays. From this menu you choose the item and it causes the CommandClick. If the ShowLastCommand property is set on true, the CommandButton is set on default in chosen item. So if you later on click on CommandButton, besides the Click event even CommandClick event is caused. This event has in parameter args the last chosen item. The list of items in menu is defined in Items collection.
Appearance
The appearance of CommandButton is influenced by CommandButtonStyle class setting.
Note: If Theme=Vista, the CommandButton is delineated by grey colors. Colors, which are set in Style property, are used for button delineation after you point on it by the mouse.