How do I set the textStyle from a button?

Chipp Walters chipp at chipp.com
Mon Dec 17 19:23:01 EST 2001


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...

thanks,

Chipp

 ----------------------------
|    ___   ____       _ __   |
|   / _ | / / /___ __(_) /_  |
|  / __ |/ / __/ // / / __/  |
| /_/ |_/_/\__/\_,_/_/\__/   |
|   http://www.altuit.com    |
|      chipp at altuit.com      |
 ----------------------------




More information about the use-livecode mailing list