Set icon of button to a graphic
bvlahos at mac.com
Sun Jan 9 22:44:20 EST 2005
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.
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.
> 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 at lists.runrev.com
More information about the Use-livecode