Cursed by insertions
pete at mollysrevenge.com
Sun Feb 27 15:12:17 EST 2011
I think Richmond is referring to the insertion point, not the cursor. I have noticed this before - if you place the insertion point somewhere in an LC control, switch to another application, then switch back to LC, the insertion point is gone. This is on a Mac. Other applications on the Mac don't act this way, they show the insertion point where it was last time you were in them.
The dictionary description of the selectedLoc seems to imply it refers to the top left coordinates of any selected text - does it work if there is no text selected but you need to find out where the insertion point is?
On Feb 27, 2011, at 11:00 AM, J. Landman Gay wrote:
> On 2/27/11 3:30 AM, Richmond wrote:
>> Having made a jazzy cursor for my text field I am wondering if there is
>> possibly a way where, after an insertion point has been decided on, the
>> cursor can remain with the insertion point unless the user moves it.
>> The problem is this:
>> The user is jigging back and forth between the textField in the Livecode
>> stack and some other app, and every time they come back to the stack the
>> cursor has moved.
> You can use the selectedloc to find where the insertion point is. But the cursor is never supposed to be controlled by an app, it is independent of any particular program and should always be under the user's control. I don't know of any other app that sets the cursor for the user that way. I wouldn't do it if I were you, it breaks all HIGs on all OSs.
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode