btnimage
Syntax: %btnimage(button[,filename])
Change the image assigned to a button to the given filename. The button parameter can be number or id. If the filename is not present, the current bitmap filename is returned.
Examples:
Create a button:
#BUTTON 1 {Protect} {cast 'circle of protection'}
Now, assign a bitmap image to the button:
#CALL %btnimage(1,"protect.bmp")
To remove the bitmap from the button:
#CALL %btnimage(1,"") |