Caption property

From Xojo Documentation

Revision as of 12:47, 11 March 2010 by SteffX (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As String )
aControl.Caption = newStringValue
or
StringValue = aControl.Caption

Supported for all project types and targets.


The caption of a control.

This property can be set inside the IDE or programmatically.


Captions.png


NOTE: If the Caption property contains an ampersand (&) character, it will display only if it is preceded by another ampersand character. For example, if the caption should read "Bread & Butter", enter "Bread && Butter".

This is done to make applications on all operating systems behave consistently. The ampersand is used to denote a keyboard accelerator on Windows.


Controls implementing the Caption property

BevelButton
Checkbox
DataControl
GroupBox
PushButton
RadioButton
StaticText
ToolButton