Setting the icon of a button to be an image

Jan Schenkel janschenkel at yahoo.com
Mon Jan 12 05:21:08 EST 2004


--- peter9.smith at ps.ge.com wrote:
> I have a button and an image of exactly the same
> size.  When I set the
> button's showIcon to true and the icon to the image
> ID the image does appear
> in the button but it's shifted up about 5 pixels.
> 
> I've checked out all the properties of the button
> and icon the inspectors
> offer but haven't been able to get rid of this 5
> pixel shift.  I'm using Rev
> 2.1 on Mac OSX 10.2.8.
> 
> Should what I'm trying to do work?  Any advice
> welcome.
> 
> Thanks, Peter Smith.
> 

Hi Peter,

Assuming you've set the 'showName' property to false,
you'll want to also tinker the 'margins' property --
this allows you to shift around the icon and text in a
button.

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


More information about the use-livecode mailing list