Return or set the height and width of a Toolbar control's buttons.
Syntax
object.ButtonHeight [= number]
object.ButtonWidth [= number]
The ButtonHeight, ButtonWidth properties syntax has these parts:
Part | Description |
object | An object expression that evaluates to a Toolbar control. |
number | A numeric expression specifying the dimensions of all buttons on the control that have the Button, Check, or ButtonGroup style. |
Remarks
ButtonHeight and ButtonWidth use the scale unit of the Toolbar 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.