View Full Version : scrollPane zoom "scroll bar align center?"

03-09-2005, 07:09 AM
i'm trying to create a zoom map into a scrollPane component whith 2 Buttons components.
When you click "+ Button" or "- Button" the content of scrollPane changes size, thus simulating zoom effect.
I'd like to see zoom the center of my content. Is passible to set scroll bar in the center of my scrollPane.
Now I calculate the position of scrollbar whth
scrollPane.hPosition = HeightContentSize/2 but is not a good solution..
Can you halp me??