[racket] Scroll events in list-box%

From: Laurent (laurent.orseau at gmail.com)
Date: Wed Jul 28 12:33:13 EDT 2010

On Wed, Jul 28, 2010 at 18:21, Laurent <laurent.orseau at gmail.com> wrote:

> Hi,
>
> I can see there are scroll events and an `on-scroll' method for canvas%,
> but not for list-box% or list-control%.
> Is there a way to know when a scrollbar is moved in a list-box%?
>
> I need this to synchronize the scrolling of several list-boxes.
>
>
Oops, this one is clearly explained in the docs at set-first-visible-item:

A program cannot detect when the scroll position changes except by polling
> get-first-visible-item<file:///usr/plt-5.0.1.1/doc/gui/list-box_.html?q=vertical-panel%25#%28meth._%28%28%28lib._mred/main..rkt%29._list-box%7E25%29._get-first-visible-item%29%29>.
>
>


Sorry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100728/9e560963/attachment.html>

Posted on the users mailing list.