Set icon of button to a graphic

2005-01-09 Thread Bill Vlahos
I want to show if an object is either too hot, too cold, or within 
normal temperature range? I was thinking that a simple circle filled 
with green, blue, or red with the temperature next or under it would be 
an easy way to tell at a glance if things are normal. I was thinking 
that if I create a button with the icon set to one of the 3 images and 
setting the label of the button to the temperature would do the trick. 
I would simply set the icon of the button to one of the three "colors".

I created a 3 small circle graphics (one with each color) but I can't 
seem to select those for the button icon as they are a "graphic" not an 
"image".

How can I convert a graphic to an image?
Bill Vlahos
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Set icon of button to a graphic

2005-01-09 Thread Chipp Walters
Hi Bill
You can try this. Creat a button and put this in the script:
on mouseUp
  put the windowId of this stack into tWinID
  put the rect of grc "redCircle" into tRect
  import snapshot from rectangle tRect of window tWinID
  set the name of last img to "redCircle"
end mouseUp
This will create an image from the graphic "redCircle" which you can now 
use to create your buttons.

best,
Chipp
Bill Vlahos wrote:
I want to show if an object is either too hot, too cold, or within 
normal temperature range? I was thinking that a simple circle filled 
with green, blue, or red with the temperature next or under it would be 
an easy way to tell at a glance if things are normal. I was thinking 
that if I create a button with the icon set to one of the 3 images and 
setting the label of the button to the temperature would do the trick. I 
would simply set the icon of the button to one of the three "colors".

I created a 3 small circle graphics (one with each color) but I can't 
seem to select those for the button icon as they are a "graphic" not an 
"image".

How can I convert a graphic to an image?
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Set icon of button to a graphic

2005-01-09 Thread Ben Fisher
>How can I convert a graphic to an image? 

Bill,

You can just take a snapshot of the screen. When you have the graphic looking 
the way you want it, it cmd-shift-F3 (mac) or alt-printscreen (pc) to take a 
screen snapshot. Then use a graphics program to save this as a png, adding 
transparency if you want, and then import it back into the stack as an image.

-Ben
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Set icon of button to a graphic

2005-01-09 Thread Bill Vlahos
Thanks Chipp and Ben. Chipp's script did the trick and I'll use Ben's 
suggestion of converting it to a PNG for transparency.

Bill Vlahos
On Jan 9, 2005, at 7:07 PM, Chipp Walters wrote:
Hi Bill
You can try this. Creat a button and put this in the script:
on mouseUp
  put the windowId of this stack into tWinID
  put the rect of grc "redCircle" into tRect
  import snapshot from rectangle tRect of window tWinID
  set the name of last img to "redCircle"
end mouseUp
This will create an image from the graphic "redCircle" which you can 
now use to create your buttons.

best,
Chipp
Bill Vlahos wrote:
I want to show if an object is either too hot, too cold, or within 
normal temperature range? I was thinking that a simple circle filled 
with green, blue, or red with the temperature next or under it would 
be an easy way to tell at a glance if things are normal. I was 
thinking that if I create a button with the icon set to one of the 3 
images and setting the label of the button to the temperature would 
do the trick. I would simply set the icon of the button to one of the 
three "colors".
I created a 3 small circle graphics (one with each color) but I can't 
seem to select those for the button icon as they are a "graphic" not 
an "image".
How can I convert a graphic to an image?
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Set icon of button to a graphic

2005-01-10 Thread James Hurley
Message: 13
Date: Sun, 9 Jan 2005 15:07:00 -0800
From: Bill Vlahos <[EMAIL PROTECTED]>
Subject: Set icon of button to a graphic
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed
I want to show if an object is either too hot, too cold, or within
normal temperature range? I was thinking that a simple circle filled
with green, blue, or red with the temperature next or under it would be
an easy way to tell at a glance if things are normal. I was thinking
that if I create a button with the icon set to one of the 3 images and
setting the label of the button to the temperature would do the trick.
I would simply set the icon of the button to one of the three "colors".
I created a 3 small circle graphics (one with each color) but I can't
seem to select those for the button icon as they are a "graphic" not an
"image".
How can I convert a graphic to an image?
Bill Vlahos

Bill,
I tried Chipp Walter's solution and I get a "Rev has unexpectedly 
quit" message at the line:

   import snapshot from rectangle tRect of window tWinID
Don't know why. According to the docs it should work. Could this be 
an OS X problem? (Rev 2.2.1, Mac OS X 2.3)

Could you just use a single circle graphic (with a text field below) 
and then just set the background color of the circle graphic as 
needed?

Jim
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Set icon of button to a graphic

2005-01-10 Thread Trevor DeVore
On Jan 10, 2005, at 6:40 AM, James Hurley wrote:
Bill,
I tried Chipp Walter's solution and I get a "Rev has unexpectedly 
quit" message at the line:

   import snapshot from rectangle tRect of window tWinID
Don't know why. According to the docs it should work. Could this be an 
OS X problem? (Rev 2.2.1, Mac OS X 2.3)
I believe this is a bug in version prior to 2.5.  If you try to import 
a snapshot using a windowID then Rev crashes.

--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution