PDA

View Full Version : How do you get/set scrollbar position?


kmeixner
02-09-2009, 02:35 PM
Hello,

I need to figure out how to get the current scrollbar position (either as a percent or page number related to page step size) and also how to set the position via a method call so I can automatically sync up other components with the scrollbar position. I don't see any method to do these in the documentation. Doe anyone know how to do this?

I am using OpenLaszlo 3.4.0.

Thanks,

Kevin

senshi
02-09-2009, 02:56 PM
Just use the x/y position of the scrolled view to get the current scroll position.

kmeixner
02-10-2009, 08:06 AM
Just use the x/y position of the scrolled view to get the current scroll position.

Thanks Senshi, that works great.

Kevin