Selection strategies

Chipp Walters chipp at chipp.com
Thu Feb 26 17:33:03 EST 2004


Richard, see if this helps:

if the selectedText of fld 1 of stack "Untitled 1" is empty then
     focus on fld 1 of stack "Untitled 1"
end if

I tried it here and it works.

Richard Gaskin wrote:

> I'm making a toolbar in a palette window which modifies text in a field 
> in a toplevel stack.  I find that when text is selected in the field the 
> palette buttons work great, but if the cursor is inserted with no 
> selection then clicking in the palette window causes the field to lose 
> focus.
> 
> Any of you know how to make that work?
> 


More information about the use-livecode mailing list