LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
lohill
- Posts: 770
- Joined: Tue Dec 08, 2009 6:37 pm
Post
by lohill » Tue Feb 26, 2013 7:49 pm
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
-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10330
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Wed Feb 27, 2013 6:14 am
Hi.
Hmmm. Do you have the "autoHilite" of the field set to "false"? This may be your problem.
Craig Newman
-
lohill
- Posts: 770
- Joined: Tue Dec 08, 2009 6:37 pm
Post
by lohill » Wed Feb 27, 2013 7:56 pm
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
-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10330
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Wed Feb 27, 2013 9:56 pm
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