Returns or sets the width of the buttons.
Object.ButtonWidth [ = pfButtonWidth ]
The ButtonWidth property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AToolBar |
AToolBar control |
|
pfButtonWidth |
Float |
The width of the buttons |
ButtonHeight and ButtonWidth use the scale unit of the AToolbar control's container. The scale unit is determined by the ScaleMode property of the container.
By default, the ButtonWidth and ButtonHeight properties are automatically updated to accommodate the string in the Caption property or image in the Image property of the Button object.
The following statement sets the width of the AToolBar buttons to 48 pixels:
tbr1.ButtonWidth=48
ButtonCount, ButtonHeight, Buttons, InsertButton, MoveButton, OnButtonClick, OnButtonDblClick, RemoveButton