plt-scheme : catching mouse click event on canvas

Posted by Thura on Stack Overflow See other posts from Stack Overflow or by Thura
Published on 2010-02-02T06:43:46Z Indexed on 2010/06/08 2:12 UTC
Read the original article Hit count: 413

Filed under:
|
|
|

I am writing a tic-tac-toe game in plt-scheme as my AI course project. The idea for gui is a grid with 9 boxes, each with a canvas, using panes ... When the user click on a canvas, 'X' or 'O' will be drawn accordingly ...

The question is how can I catch mouse click event on canvas? I found out I need to use on-event, but still don't know how? Any clues?

© Stack Overflow or respective owner

Related posts about project

Related posts about assignment