Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control position of scrollpane content 1

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
Hi,

Does anyone know if it is possible when using a scrollpane component in FMX to set the position of the content?

If the user scrolled to the bottom of the pane, I would like the content to return to the top of the pane on a button release.

Thanks.

frozenpeas
 
Okay, hmm. I am having troubles using this.

I am loading the content from the library (with the linkage id).

Code:
trace(_root.scrollpane.getScrollPosition());
returns
Code:
[object Object]

Any ideas? Thanks again.

frozenpeas
 
forget which is which but one is for vertical and the other for the horizontal scrollbar

trace(mypane.getScrollPosition().x)
trace(mypane.getScrollPosition().y)

_______________________________________
You know you're old if you can remember when bacon, eggs and sunshine were good for you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top