[plt-scheme] The missing drawing context

From: Jens Axel Soegaard (jensaxel at soegaard.net)
Date: Fri Mar 20 16:05:59 EDT 2009

Matthew Flatt wrote:
> The example still doesn't give the pasteboard a dc --- which comes from
> an editor-canvas%, for example.
> If you add
>  (define f (new frame% [label "test"]))
>  (define c (new editor-canvas% [parent f][editor pasteboard]))
> to the end of the program, then your callbacks are run.

That does indeed work.


Since the example (without the editor-canvas) displays
the pasteboard and string snip correctly, there must
have been a drawing context created by DrScheme in play?

Jens Axel Søgaard

Posted on the users mailing list.