GUI_IMAGEBUT(WIN,X,Y,IOFF,ION,ACT,HELP$,[BORDER],[IW],[IH] )
 
IOFF = Pointer to Off Image
ION = pointer to On Image
BORDER = 0/1 draw border around image
IW,IH = image width,height
 
Adds an image button to a window. The OFF image is specified by IOFF, the ON image by ION. If you leave ION as 0 then a copy of the OFF image is used instead.
You can also have a border if required, and scale the images to any dimensions.
 
Example:
 
IMG1=LOADIMAGE("but1_OFF.BMP")
IMG2=LOADIMAGE("but1_ON.BMP")
but1.GADGET=GUI_IMAGEBUT(mywin,10,20,IMG1,IMG2,1,"Image Buttons",1,20,20)