Programmatically scroll a scrolling panel?
Dec 10, 2015
I have a custom menu which exists inside of a scrolling panel. Each menu item is highlighted automatically as the user progresses through the course, mostly all on one slide.
I'd like the scrolling panel to auto-scroll down once the menu reaches a certain point, so that the highlighted menu item is always on the screen and the user doesn't have to scroll down to see it.
There is a sample here that kind of does this by adding a motion path to a text box, but I noticed that they hide the scroll bar off to the side of the canvas, for good reason, as the size of the bar changes with this technique: http://www.thearticulatetrainer.com/is-there-a-way-to-make-a-scrolling-panel-automatically-scroll/
Are there any other ways to cause a scrolling panel to auto-scroll?
Thanks,
Mike
4 Replies
Hi Mike there is no way to move the scroll panel itself, Ron from Yukon's example showed a great top where he used a motion path inside the scroll panel is the best work around at the moment.
You could keep the scrollbar on the stage and use the motion path I don't think the scroller thumb more though when the motion path moves
That's part of the weird behavior. The scroller thumb does not move, it really should, but the size of the scroller thumb changes instead, I guess because technically the size of the content inside the scrolling panel is changing.
I was just hoping there was a more elegant solution.
Just wondering if anyone has found a better solution for this. I'm currently trying to do this. The problem with the motion path is that it's technically not scrolling the panel, it's just moving the content inside of the scrolling panel. It ends up messing up my scrolling panel.