How do I set the textStyle from a button?

Geoff Canyon gcanyon at inspiredlogic.com
Mon Dec 17 20:10:01 EST 2001


At 6:20 PM -0600 12/17/01, Chipp Walters wrote:
>Every time I try from a button:
>
>on mouseUp
>   set the textStyle of the SelectedChunk to bold
>end mouseUp
>
>it doesn't work. It turns out that when the button is pressed, the focus
>leaves the field and the selectedChunk is now empty.
>
>I know this should be easy...

Try capturing the selection information you need in the mouseDown event.

regards,

geoff




More information about the Use-livecode mailing list