Computer Science Canada

turing button problem

Author:  lovecompsi [ Sun Apr 27, 2008 7:03 pm ]
Post subject:  turing button problem

i have a problem about making a button in turing

here is the code i use

var m, n,button : int

loop
Pic.ScreenLoad ("1.JPG", 150, 50, picCopy)

mousewhere (m, n, button)
if button = 0 and 236 > m and m > 68 and 135 > n and n > 68 then% the image when we move the mouse on
Pic.ScreenLoad ("2.JPG", 150, 50, picCopy)
end if
left := button mod 10
if left = 1 and 236 > m and m > 68 and 135 > n and n > 68 then
Pic.ScreenLoad ("3.JPG", 150, 50, picCopy) % the image when we press the button
end if
delay(200)
end loop


ok,it does work, but it doesnt work that

when i run the program, i can always see the "distorted" on the button if i move the mouse on it.

you can put any picure on the button area, and it always has the same problem.

is GUI better to the button program?

Author:  lovecompsi [ Sun Apr 27, 2008 7:29 pm ]
Post subject:  Re: turing button problem

OMG! SORRY, THIS IS QUESTION IS TOO DUMP, I GOT IT!!

SORRY

thank you for reading this anyway


: