Selection strategies
Richard Gaskin
ambassador at fourthworld.com
Fri Feb 27 15:19:06 EST 2004
depstein at att.net wrote:
> Richard Gaskin noted that
>
>
>>when text is selected in the field [of the topstack] 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.
>
>
> My palette is a menu of pulldown buttons, and these handlers are in the palette's stack script:
>
> on mouseEnter
> global chunkStore
> get the selectedChunk
> if it is empty then put empty into chunkStore else put it && "of" && word -2 to -1 of the long id \
> of the selectedField into chunkStore
> end mouseEnter
>
> on mouseDown
> global chunkStore
> if chunkStore is not empty then do "select" && chunkStore
> end mouseDown
Good solution. Ken also came up with this brainstorming with him on the
phone last night. I'll go that route for now, and have submitted a
Bugzilla report for the future.
Thanks for the help.
--
Richard Gaskin
Fourth World Media Corporation
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list