Difference between revisions of "DesktopLabel"
From Xojo Documentation
Line 1: | Line 1: | ||
{{ClassBox | {{ClassBox | ||
| super=[[DesktopUIControl]] | | super=[[DesktopUIControl]] | ||
+ | | owner=Class | ||
| scope=global | | scope=global | ||
| newinversion=2021r3 | | newinversion=2021r3 |
Revision as of 23:35, 27 January 2022
Class (inherits from DesktopUIControl)
New in 2021r3
Displays read-only text.
Properties | |||||||||||||||||||||||||||||||||||
|
Methods | ||||||||
|
Notes
You can define an accelerator character for a DesktopLabel. In the Text 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.
Sample Code
The following code sets the text of the Label:
Me.Text = "Hello World"
See Also
DesktopUIControl class; DesktopTextArea, DesktopTextField control.