fixed it by changing the mouseDown to mouseEnter
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Chipp Walters
Sent: Monday, December 17, 2001 7:52 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Geoff Canyon
Sent: Monday, December 17, 2001 7:08 PM
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution