DesktopLabel.Selectable

From Xojo Documentation

Property (As Boolean )


aDesktopLabel.Selectable = newBooleanValue
or
BooleanValue = aDesktopLabel.Selectable

New in 2021r3

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 macOS and Linux is supported.

Sample Code

This code turns on Selectable:

Me.Selectable = True