[Gambas-user] How to scroll tableview from app

rudy emil97 at ...1424...
Wed Apr 26 04:42:21 CEST 2006


On Tuesday 25 April 2006 08:41, Rob Kudla wrote:
> On Mon April 24 2006 21:32, emil97 at ...1424... wrote:
> > with row, how can I made the tableview scroll one row up when
> > I add another row, so I can always see the last row in the
> > tableview,. (Of course, I can use the scroll bar, but I want
> > to do it from application).
>
> I think you want the TableView's ScrollY property.  It takes an
> integer but I don't remember whether the number represents
> pixels from the top or rows from the top.... best to just
> experiment and find out.
>
> I'm not sure, but I think all other controls with scrollbars also
> have ScrollX and ScrollY properties to scroll them
> programmatically.
>

Thanks, it works ! 
Actually I did experiment with ScrollY property but I didnot get the idea what 
will be the  right number for tableview.ScrollY. (I thought of  number of row 
and 1 for "one row up"). They didnot  work. (I almost think maybe ScrollY 
isnot the property I want). But when you suggest pixels, I tried larger 
numbers:  I multiply the number of row by ten. Well, it just works !  (Not 
sure, though, if it is really pixels count). 





More information about the User mailing list