[plt-scheme] drawing in MrEd's pasteboards

From: Robby Findler (robby at cs.uchicago.edu)
Date: Fri Sep 8 16:24:46 EDT 2006

At Fri, 8 Sep 2006 16:20:38 -0400, "Carl Eastlund" wrote:
> On 9/8/06, Robby Findler <robby at cs.uchicago.edu> wrote:
> > (define my-editor-canvas%
> >   (class editor-canvas%
> >     (inherit get-dc)
> >     (define/override (on-paint before? dc left top right bottom dx dy draw-caret)
> >       (a-drawing-function (get-dc))
> >       (super on-paint before? dc left top right bottom dx dy draw-caret))
> >     (super-new)))
> 
> Silly question - is (get-dc) in this context expected to give a
> different result than the dc argument to the method?

Oh, sorry. No. It's the same thing. (I got confused: canvas%'s on-paint
doesn't have a dc argument and I didn't pay attention to those arguments!)

Robby


Posted on the users mailing list.