Page 1 of 1

how to script an icon into a button

Posted: Mon Jul 14, 2014 3:02 pm
by robm80
I think I have looked everywhere to find a script for placing an image (icon, bmp, png) into a button.
Manually with "icons & borders" no problem, but what syntax for:
set ???????? of button "try" to image "foo.jpg or image id 1006)
Thanks

Re: how to script an icon into a button

Posted: Mon Jul 14, 2014 3:21 pm
by Klaus
Hi Rob,

you already got it :D
...
set the ICON of btn X to 1003
...


Best

Klaus

Re: how to script an icon into a button

Posted: Mon Jul 14, 2014 3:21 pm
by FourthWorld
See "icon" in the Dictionary, where you'll find this example:
set the icon of button "Help" to "Question Mark"