How do you trap for cursor moving from a field when user uses a mouse?
Devin Asay
devin_asay at byu.edu
Wed May 9 16:35:15 EDT 2007
On May 9, 2007, at 1:45 PM, Charles Szasz wrote:
> I am still having a great deal of problems on how to trap for a
> cursor that is moved out of a field by using the mouse instead of
> using a tab, enter or return key!! Despite the suggestions I
> received when I posted this as "Is there a solution for this
> problem?", I cannot resolve this problem.
>
> I tried the following suggested by Jacqueline:
>
> if the selectedfield is not empty
> then
> send "closefield" to the selectedfield
>
> but that does not work.
Charles,
Check out the selectionChanged message. This message is triggered
when the selected text in a field changes, including, if memory
serves, when the selection point is first established inside a field.
Devin
Devin Asay
Humanities Technology and Research Support Center
Brigham Young University
More information about the use-livecode
mailing list