[plt-scheme] scroll bars on definition window

From: Jon Rafkind (workmin at ccs.neu.edu)
Date: Sun Nov 30 13:12:34 EST 2008

Somehow I missed all the scrolling functions as part of the text% 
object. I used the following code to scroll down by 1 line.

(let ([start (box 0)]
      [end (box 0)])
  (send master get-visible-line-range start end)
  (send master scroll-to-position
        (send master line-start-position (unbox end))))

Robby Findler wrote:
> That's the only thing you get. It is an editor-canvas%. You might want
> to get the editor's admin and do things there, or you might be better
> off (it is easier) to just set the position and let scrolling happen?
> Robby
> On Sun, Nov 30, 2008 at 2:57 AM, Jon Rafkind <workmin at ccs.neu.edu> wrote:
>> I'd like to be able to adjust the scrollbars programmatically via
>> set-scroll-pos/get-scroll-pos in Drscheme but I cannot find the proper
>> canvas to use. If I call `get-canvas' on the current tab thing I get a
>> definitions-canvas% back which apparently doesn't extend canvas%.
>> How can I get the object that controls the scrollbars on the definitions
>> window?
>> _________________________________________________
>>  For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.