Label.Selectable
From Xojo Documentation
Property (As Boolean )
![]() |
This property is only available on macOS and Linux platforms. For cross-platform compatibility, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this property on an incompatible platform. |
aLabel.Selectable = newBooleanValue
or
BooleanValue = aLabel.Selectable
New in 2010r2
Supported for all project types and targets.
or
BooleanValue = aLabel.Selectable
New in 2010r2
Supported for all project types and targets.
Use this property to allow the Label caption to be selectable. The default is False.
Notes
You can use the default menu shortcuts to copy the selected text. At this time only Cocoa and Linux is supported.
Sample Code
This code turns on Selectable: