Borders and Icons

Mark E. Powell runrev at aboutmyfiles.com
Tue Jul 31 13:54:38 EDT 2007


Hello Bridger:

If you must have the image encapsulated in a button as you have described, you can do something like the button script here:

http://www.aboutmyfiles.com/IconInit.txt

Essentially, it clones the master image, crops it, and sets the icon of the button to the new image.  The button "panorama" is the one showing the image (assuming borderwidth = 1), and the id is the hard coded id of your master image.  You might need more error checking and housekeeping depending on your situation.

Mark







More information about the use-livecode mailing list