Label - FloatingPanel

This is the text that appears within this control

Type: Property

Access: Read/Write

Data Type: String

Parameters: None

Syntax
 Property String Label

Read Access: Get Label to StringVariable
Write Access: Set Label to StringVariable/Value


Description

This is the text that appears within this control. It can be set and queried through this property.

When used with the Button class, this sets the text within the button. See psImage for adding an image to a button.

Sample

This sample shows a button that displays text and an image.

Object oTextAndImageButton is a Button
    Set Location to 20 71
    Set Label to 'Save'
    Set psImage to "ActionSave.ico"

    Procedure OnClick
    End_Procedure

End_Object


To display an ampersand (&) in a label, use two ampersand characters.

Set Label to 'Save && Display'


When used with the CheckBox class, this sets the text that appears to the right of the checkbox.

When used with the TextBox class, this sets the text that appears inside of the textbox. This does support multi-line (wrapped) text; see the TextBox class doc for details.

When used with containers (Panel, Group, dbGroup), this sets the text that appears in the container.

When used with link labels (cLinkLabel), this sets the regular and hyperlink text that appears in the object.

See Also

Button | CheckBox | TextBox | Panel | Group | dbGroup