Language Reference Guide : 4. System Classes : ButtonField Class : ButtonStyle Attribute
 
Share this page                  
ButtonStyle Attribute
Data Type: integer
4GL Access: RW
This attribute may affect both the appearance and the behavior of a ButtonField.
Valid values are:
BS_DEFAULT
Specifies that the ButtonStyle attribute has no effect
BS_TOOLBAR
Specifies that the button should look and behave like a toolbar button. The button has a one-pixel border. The button appears flat (as if it has no border) in its normal state.
When the mouse is moved over the button, the button appears raised. When the primary mouse button is clicked with the mouse cursor over the button, the button has a pressed appearance. After the mouse button has been pressed with the cursor over the button, the appearance of the button changes as the mouse cursor is moved off and on the button until the mouse button is released.
The button background, the foreground, and the outline are drawn using standard Windows colors. With this style the foreground and background colors should be CC_SYS_BTNTEXT and CC_SYS_BTNFACE, respectively.
When the ButtonStyle is BS_TOOLBAR, the following attributes are ignored:
OutlineColor
OutlineStyle
OutlineWidth
BS_HEADERBUTTON
Used only when a button is the header button of a TableField column. The appearance and behavior of the button are similar to those of the buttons at the head of a listview column.
When a button has this style, the values of several other attributes are ignored:
OutlineColor
OutlineStyle
OutlineWidth
Descriptions of system constant values and their numeric equivalents are listed in Button Style Settings for ButtonStyle.