CaptionWidth Property (AButton)

Returns or sets the width in pixels of the picture in the object.

Syntax

Object.CaptionWidth [ = lCaptionWidth ]

The CaptionWidth property syntax has the following parts:

 

Name

Type

Description

Object

AButton

AButton control

lCaptionWidth

APixel

An integer specifying the width of the caption on the AButton.

Example

The following statement changes the AButton's CaptionWidth so the caption is ten pixels wide in the face area of the button.

btn1.CaptionWidth=10

Applies to

AButton

See Also

CaptionHeight, CaptionLeft, CaptionTop