Caption Property (AToolBarButton)

Returns or sets the text displayed in an object's title bar or below an object's icon.

Syntax

Object.Caption [ = sCaption ]

The Caption property syntax has the following parts:

 

Name

Type

Description

Object

AToolBarButton

AToolBarButton class

sCaption

BString

The text displayed in an object's title bar or below an object's icon.

Comments

The button text appears to the right of the image if the AToolBar's style is set to atbrStyleTextAlignRight.

Example

The following statement sets the text displayed in an object's title bar or below an object's icon:

tbrb1.Caption="SaveAs"

Applies to

AToolBarButton

See Also

Image, Prompt, Value