Label - Caption Property

Text to be displayed within the control

Member of Label (PRIM_SLAB)

Data Type - String


The Caption property specifies the text to be displayed within the label.
A caption can be either a literal string or a Multilingual Variable that will show the correct string for the current runtime language. If the caption is too long to fit in the control it will be clipped or show ellipses, depending on the value specified in the Ellipses property.
For Windows applications, embedding an ampersand (&) in the caption will assign an access key to the control of the character immediately to the right of the ampersand.
When the ALT key is down, this character will emulate a mouse click.
The FocusControl property must be used to define the control to take focus when the key is used.

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020