I’m writing text to a label (label.text). I want to be able to manually copy/paste the text into a Word document. Have tried using label.selectable = 1 command, no help. Am I doing something wrong
Selectable is a boolean. It only accepts True and False. Set it to True.
You also need the menu to be active and the Edit / Copy command to be available.
In the IDE:
Of course, you have to be running Windows and choose the Label (Tab).
NB: strange idea. A TextField does not do the trick ?
You would have to spend time styling it to look like a label and make sure even more properties are set correctly.
Unless one wants the decorations of a text field, it’s important to remember that Label has a “Selectable” property.
I use it on my about box. It allows the user to copy the version number and paste it into an email. Occasionally a copyable label is useful.
I think I was mis-using a label. The selectable option threw me. I’ve reverted over to using a text area control. Much better for my purpose. Thanks for the help.