[plt-scheme] Draw and save coordinates on every mouse event on canvas?

From: Grant Rettke (grettke at acm.org)
Date: Wed Jun 10 14:24:26 EDT 2009

On Wed, Jun 10, 2009 at 5:53 AM, Captain___nemo<mmrasheed at gmail.com> wrote:
> Now, I don't understand how I should put a canvas. As I can see in
> Dr.Scheme manual , it is recommended to use world.ss.  But I don't
> understand how will I get the coordinates and save in an array? Also
> how that line can be drawn?

You might define a structure to store coordinates, and keep them in a
list, and then use scheme/gui language to gain access to functions for
drawing on a canvas using a bitmap-dc% object. Or perhaps that is too
low level if you are supposed to use world?


Posted on the users mailing list.