One thing everyone's been missing is that there is nothing in the sample code to blank out the picture when STATUS=0, which is Goober's problem currently.
He needs something like:
if my_img_status = 0 then
drawimage blankimage,my_imgx,my_imgy
endif
just before the drawimage pointer statement at the end.
That should give him what he wants- toggling the image on and off.
Goober: put the handle of your original image in the above IF statement in place of the "blankimage" handle so it will draw the original image back when you click the mouse the second time over the picture (when STATUS=0).
He needs something like:
if my_img_status = 0 then
drawimage blankimage,my_imgx,my_imgy
endif
just before the drawimage pointer statement at the end.
That should give him what he wants- toggling the image on and off.
Goober: put the handle of your original image in the above IF statement in place of the "blankimage" handle so it will draw the original image back when you click the mouse the second time over the picture (when STATUS=0).