Page 1 of 1

Any suggestions for a custom button?

Posted: Thu Jun 19, 2008 6:25 pm
by mokogobo
I'm working on a project that needs to have "buttons" that are basically images stored on the hard-drive. Sometimes, a button will need to be "highlighted" with a thick colored outline.

Right now, I've built my own button with a few Rectangle objects and an Image Area object, and grouped them. I've got the buttons stored on a separate card, and when I need some of them, I copy to a temporary card, rename the group, and adjust any properties that I need to, then copy it to the card where it is needed. This works, but it feels a bit clunky.

I'm new to RunRev, so am curious if anyone more experienced has any suggestions. I'm open to as many ideas as you can toss at me, but ideally, I'm looking for the "best" solution.

Posted: Thu Jun 19, 2008 7:16 pm
by Janschenkel
You could make your life a little easier, I think, by using a regular button, but setting its style to 'transparent' and setting the different icon properties (icon, hilitedIcon, hoverIcon,...) to the IDs of several images that take care of the look&feel.
An interesting option here, is to use the 'export snapshot' command to create an image out of your group:

Code: Select all

export snapshot from group "MyGroup" to image "MyImage" as PNG
Hope this gets you started,

Jan Schenkel.

Posted: Thu Jun 19, 2008 8:06 pm
by mokogobo
Interesting... thanks. :-)

Posted: Fri Jun 20, 2008 1:34 am
by Nonsanity
If it's just a matter of an image with a solid or patterned border, Revolution has settings you can give an image object to make borders of almost any thickness, color, or texture... On the fly.