How to stop mouse drag on locked field from hiliting text?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
How to stop mouse drag on locked field from hiliting text?
When I set the locktext to true on a field the cursor stays the arrow but it still hilites the text. The hilited text cannot be copied with cmd-c. (the selectedtext does return the hilited text though).
How can I prevent the text in a locked field from being hilited?
Thanks,
Janey
How can I prevent the text in a locked field from being hilited?
Thanks,
Janey
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
I believe the autoSelect property only affects list fields. Try the autoHilite property, along with the traversalOn that Mark mentioned.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
traversalOn doesn't seem to do anything with respect to the hilite problem but autoSelect does.
Is there a message I can trap in a control at start up so that I can set the state of the control?
If I set the traversalOn of a fld to false then I should not be able to tab into it, right? When I did this I still could tab into the fld.
Janey
Is there a message I can trap in a control at start up so that I can set the state of the control?
If I set the traversalOn of a fld to false then I should not be able to tab into it, right? When I did this I still could tab into the fld.
Janey
Hi Janey,
TraversalOn doesn't do anything if you are using a list field, whilte autoHilite doesn't affect unlocked text fields.
Messages you can trap on start up: startUp, preOpenStack, openStack, preOpenCard, openCard, preOpenBackground and openBackground. You might want to look these up in the dictionary.
When the traversalOn is false, you really can't tab into a field. You must have done something wrong there or perhaps you mean something different when you say "tab into".
Best,
Mark
TraversalOn doesn't do anything if you are using a list field, whilte autoHilite doesn't affect unlocked text fields.
Messages you can trap on start up: startUp, preOpenStack, openStack, preOpenCard, openCard, preOpenBackground and openBackground. You might want to look these up in the dictionary.
When the traversalOn is false, you really can't tab into a field. You must have done something wrong there or perhaps you mean something different when you say "tab into".
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode