project - plt-scheme : catching mouse click event on canvas -
I am writing tick tac-toe game in PTT-scheme as an AT Course project. An idea for GUI is a grid with 9 songs, using a pan with each canvas, ... When a user clicks on a canvas, then 'X' or 'O' will be prepared accordingly. .
The question is how can I capture a mouse click event on canvas? I came to know that I need to use on the event, but still do not know how? any clue?
OK, I got it ...
(canvas (FOOBR-callback)) (Super-New)) when the (canvas? (Send e-event-type) 'left-down' / Code>
Comments
Post a Comment