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
how to script an icon into a button
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: how to script an icon into a button
Hi Rob,
you already got it
...
set the ICON of btn X to 1003
...
Best
Klaus
you already got it

...
set the ICON of btn X to 1003
...
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: how to script an icon into a button
See "icon" in the Dictionary, where you'll find this example:
set the icon of button "Help" to "Question Mark"
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn