Page 1 of 1

How to stop mouse drag on locked field from hiliting text?

Posted: Wed Jul 29, 2009 9:40 pm
by Janey
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

Posted: Wed Jul 29, 2009 9:46 pm
by Janey
set autoSelect to false

Posted: Wed Jul 29, 2009 11:23 pm
by Mark
Hi Janey,

Set the traversalOn to false.

Mark

Posted: Wed Jul 29, 2009 11:59 pm
by FourthWorld
I believe the autoSelect property only affects list fields. Try the autoHilite property, along with the traversalOn that Mark mentioned.

Posted: Thu Jul 30, 2009 1:51 am
by Janey
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

Posted: Thu Jul 30, 2009 8:14 am
by Mark
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