Understanding the ScrollPanel widget

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Understanding the ScrollPanel widget

gerard alis
Well, I´m continue developing the grid widget.

Now i need when a tab key is pressed relocate the scrollbars to position of cell ( only if the cell is not visible in begin ). I don´t know like that. I try

     aScrollPanel vScrollBarValue: ( cellBounds origin y  / aScrollPanel scroller height) asFloat.

but that don´t works always.When the current row is in the first rows or last rows the scroll dont works good.

Exists a way for define a "unit" of scroll? I understand than in my case is the height of my cells.

Regards