Toggle image button
Posted: Mon May 30, 2016 8:34 pm
This will work with version 3.0 xx
Images used are attached but you may want to make them phancier.
Will Make an image button that can be toggled.
Images used are attached but you may want to make them phancier.
Will Make an image button that can be toggled.
Code: Select all
'Toggling Image button example
io(po,D4,0)
[TOP]
CLS
if io(laststat,D4) = 1 then
IMAGEBUTTON "ON.PNG", [ON]
else
IMAGEBUTTON "OFF.PNG", [OFF]
end if
wait
[ON]
io(po,D4,0)
goto [TOP]
[OFF]
io(po,D4,1)
goto [TOP]