peStyle - cToolbarButton
Changes the style of a button
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer peStyle
| Access Type | Syntax |
|---|---|
| Read Access: | Get peStyle to IntegerVariable |
| Write Access: | Set peStyle to IntegerVariable/Value |
Description
Use the peStyle property to change the style of a button. The following constants can be used:
| Constant | Meaning |
|---|---|
| bsButton | a regular button |
| bsSeparator | appears as a gap between two other buttons. When a button has this style, it cannot accept user-input. |
| bsCheck | allows the button to be used like a checkbox. That is, when pressed the first time, it stays pressed down. The next time it is pressed, it is released back up, and so on. When used with the pbGrouped property, the button acts like a radio in a radiogroup. That is, only one button in the group can be pressed and all others are automatically released. |
| bsDropDown | effectively creates two buttons in one. The button has a drop-down arrow placed adjacent, which can be clicked independently. When the button is clicked, the OnClick event is received and when the drop-down arrow is clicked, the OnDropDown event is sent. |
Default is bsButton.