From Xojo Documentation
Supported PlatformsProject Types: Desktop Platforms: macOS, Windows, Linux
- For web apps, see WebLabel.
Displays read-only text.
You can define an accelerator character for a Label. In the Value property, precede the accelerator character with an ampersand. For example, the entry "&Home" signifies that the H is the accelerator. Pressing Alt+H on Windows triggers the AcceleratorKey event.
Labels on macOS are not meant to ever appear disabled. As a result, the Enabled property of a Label has no effect on macOS.
The following code sets the text of the Label: