[plt-scheme] The missing drawing context

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Thu Mar 19 16:43:06 EDT 2009

Oh, I think you have to wait and do the layout when you get the dc.
I'm not remembering which callbacks inform you of that, but I think
you should try get-extent and, if that fails, on-paint.


On Thu, Mar 19, 2009 at 3:40 PM, Jens Axel Soegaard
<jensaxel at soegaard.net> wrote:
> Robby Findler wrote:
>> The pasteboard has to be in an editor-canvas to have a dc, I believe.
>> In general, there are multiple possible dc classes that have different
>> font sizing information (eg, canvas-dc% that draws on the screen and
>> post-script-dc% that prints).
> The reason I put the pasteboard in an editor-snip was to make
> it displayable in the DrScheme REPL. Since a user program
> can't get to DrScheme's editor canvas, I am a little unsure
> on how to achive what I want.
> The over all goal is to implement something like:
> http://reference.wolfram.com/mathematica/ref/Column.html
> (and http://reference.wolfram.com/mathematica/guide/GridsAndTables.html)
> /Jens Axel
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.