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.
Any suggestions for a custom button?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
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:
Hope this gets you started,
Jan Schenkel.
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
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com