Top
PowerCOBOL V11.0 Reference
FUJITSU Software

4.32 Caption Property

Description:

Contains the label or title string for the control or object.

Used in:

Controls

CheckBox

CommandButton

Frame

GroupBox

Label

OptionButton

StaticText

Tab

Objects

Button

Form

MenuItem

Values:

Form

The title string for the form.

Button

The label string for a button on the Toolbar control. The string is displayed below or to the right of the button.

Although you can use "&" to indicate that the following character is underlined, it has no effect as an access key.

Tab

The title string of the currently selected tab page.

You can use "&" to indicate that the following character should be underlined as a mnemonic (access key).

Use "&&" to include the "&" character in the string.

Others

The label or title string for the control or object.

You can use "&" to indicate that the following character should be underlined as a mnemonic (access key).

Use "&&" to include the "&" character in the string.

If the RenderStyle property is set, you can only set the Caption property to a string that conforms to the RenderStyle property.

Default value:

Tab

None.

Others

Same as the Name property

COBOL picture:

X, up to 8192 bytes

OLE data type:

VT_BSTR

Design time access:

Set and reference.

Execution time access:

Set and reference.

Backward compatibility attributes:

For the StaticText

POW-TEXTPIC X(256)

POW-DATEPIC X(8)

Tab and Toolbar

None.

For all other

POW-TEXTPIC X(256)