ButtonWidth Property (AToolBar)

Returns or sets the width of the buttons.

Syntax

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

Comments

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.

Example

The following statement sets the width of the AToolBar buttons to 48 pixels:

tbr1.ButtonWidth=48

Applies to

AToolBar

See Also

ButtonCount, ButtonHeight, Buttons, InsertButton, MoveButton, OnButtonClick, OnButtonDblClick, RemoveButton