[racket] line numbers in drracket

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Sat Sep 18 08:25:55 EDT 2010

You don't want to extend the definitions canvas, if you want to follow
what Grant did. You want to make a new editor-canvas that is in
parallel to it, next to it.

Robby

On Fri, Sep 17, 2010 at 4:39 PM, Jon Rafkind <rafkind at cs.utah.edu> wrote:
>  I took a stab at adding line numbers to DrRacket. I started with this code
> from Grant Rettke:
> http://www.wisdomandwonder.com/link/1808/adding-a-gutter-to-drscheme which
> works reasonably well on its own but when I had trouble integrating it with
> DrRacket.
>
> I think the way to go is to extend the definitions-canvas but the issue
> there is I can't seem to add new panel objects to the canvas. I can pass the
> definitions-text% straight through via (super-new [editor editor]). I tried
> making a proxy text%/editor-canvas% combo but I just had the same issue of
> not being able to add any elements to it.
>
> So I guess the question is can I put more gui elements in a canvas?
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>


Posted on the users mailing list.