Setting the icon of a button to be an image

peter9.smith at ps.ge.com peter9.smith at ps.ge.com
Tue Jan 13 04:08:26 EST 2004


> > 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.
> 
> 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.

Thanks Jan and others it was indeed "showName" I had missed.

I appreciate the help available on this list!


More information about the use-livecode mailing list