icon on buttons

BlitzPlus Forums/BlitzPlus Programming/icon on buttons

@LAB[au]

I think they mean not using a button at all, just a canvas alone!

like this ..

mybutton=createcanvas(100,100,32,32,parent)

; eventcheck routine:
if eventid()=$201 ;canvas mouse down
if eventsource()=mybutton
if eventdata()=1 ; left mouse button
your blahblah here..
endif
endif
endif


Ofcourse, doing a really 'clickable' 3d button is something different here. But having 3 versions of 1 icon, like in propixel, seems to work fine.. one greyscale (not used), one greyscale with the icon in color (mouse moving over it), and one in full color (selected).