How do I set the textStyle from a button?

Jerry Daniels jerry at danielsfamily.org
Thu Dec 20 20:04:00 EST 2001


Chipp, et al.,

You can use the Find/Replace on the Rev Menu bar to change parts of
scripts globally. And it's FAST. I just discovered last week. It's
WONDERFUL.

Don't know about properties. 

We DO need docs for the IDE. (Not that we'll read them!)

Jerry

-----Original Message-----
From: use-revolution-admin at lists.runrev.com
[mailto:use-revolution-admin at lists.runrev.com] On Behalf Of Chipp
Walters
Sent: Monday, December 17, 2001 9:58 PM
To: use-revolution at lists.runrev.com
Subject: RE: How do I set the textStyle from a button?


Thanks KEN !!

(click - drag - copy - paste -click - drag - copy - paste -click - drag
- copy - paste -click - drag - copy - paste -click - drag - copy - paste
-)

(the sound you hear in the background is me changing ALL those scripts
and
properties!)

-----Original Message-----
From: use-revolution-admin at lists.runrev.com
[mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Ken Ray
Sent: Monday, December 17, 2001 9:24 PM
To: use-revolution at lists.runrev.com
Subject: Re: How do I set the textStyle from a button?


Guys,

It's even easier than you think... just set the traversalOn of the
button to false. It is the traversalOn that causes the button to get the
focus.

Have fun!

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Website: http://www.sonsothunder.com/

----- Original Message -----
From: "Chipp Walters" <chipp at chipp.com>
To: <use-revolution at lists.runrev.com>
Sent: Monday, December 17, 2001 8:06 PM
Subject: RE: How do I set the textStyle from a button?


> fixed it by changing the mouseDown to mouseEnter
>
> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Chipp 
> Walters
> Sent: Monday, December 17, 2001 7:52 PM
> To: use-revolution at lists.runrev.com
> Subject: RE: How do I set the textStyle from a button?
>
>
> Geoff,
>
> I tried the following in a button:
>
> global gSelTxt
>
> on mouseDown
>   put the selectedChunk into gSelTxt
> end mouseDown
>
> on mouseUp
>   if gSelTxt is not empty then
>     set the textStyle of gSelTxt to "bold"
>   end if
> end mouseUp
>
> and it still doesn't work...any other ideas?
>
> -----Original Message-----
> 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:
> >
> >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
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list