Page 1 of 1

Field will not respond to 'click'

Posted: Tue Feb 26, 2013 7:49 pm
by lohill
What is going on when you have selected some text in a field and then gone to another application or another stack in the LiveCode application and you come back to the the original selected material. At that point you cannot click on the original field and get a new insertion point or select another part of the text unless you click on another field first.

Actually if I click and/or drag on that original field enough times I can bring it back to life again and select something new.

I do have code in the script of the field that looks like this:

Code: Select all

on closeField
   global gChanges
   put true into gChanges
end closeField
Thanks,
Larry

Re: Field will not respond to 'click'

Posted: Wed Feb 27, 2013 6:14 am
by dunbarx
Hi.

Hmmm. Do you have the "autoHilite" of the field set to "false"? This may be your problem.

Craig Newman

Re: Field will not respond to 'click'

Posted: Wed Feb 27, 2013 7:56 pm
by lohill
Craig,
Hmmm. Do you have the "autoHilite" of the field set to "false"? This may be your problem.
No, It is set to true. Aside from Horizontal and Vertical scroll I pretty much leave things to their default values.

Larry

Re: Field will not respond to 'click'

Posted: Wed Feb 27, 2013 9:56 pm
by dunbarx
It works fine for me, though of course the selectedText is lost without some mechanism to restore it. If the list behavior is set, the selection persists, but that it not your issue. What you described is exactly what happens with the autoHilite set to "false".

So if you make two brand new mainstacks, and put a field with some text in one, and select some text, does the problem occur when you click on the other field and then come back?

Craig Newman