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

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -