Button on\off(modifing a button...)

Blitz3D Forums/Blitz3D Beginners Area/Button on\off(modifing a button...)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm trying to write a code to change the image of a button....
I want something that if i hit that button it's change it's graphics.....and when i hit that another time it's return to his original image and so on,to simulate a simple "button on","button off" that change if i give him thw input to.
Here's a part of the wrong code:

if mousedown(1) and mx>711 and mx<790 and my>0 and my<17
setscroll=setscroll_on ;swap of the image if i held down the mouse button
endif