How do I set the textStyle from a button?
chipp at chipp.com
Mon Dec 17 20:51:00 EST 2001
I tried the following in a button:
put the selectedChunk into gSelTxt
if gSelTxt is not empty then
set the textStyle of gSelTxt to "bold"
and it still doesn't work...any other ideas?
From: use-revolution-admin at lists.runrev.com
[mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Geoff Canyon
Sent: Monday, December 17, 2001 7:08 PM
To: use-revolution at lists.runrev.com
Subject: Re: How do I set the textStyle from a button?
At 6:20 PM -0600 12/17/01, Chipp Walters wrote:
>Every time I try from a button:
> set the textStyle of the SelectedChunk to bold
>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.
use-revolution mailing list
use-revolution at lists.runrev.com
More information about the Use-livecode