Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3762

MobileScrollableArea - Trouble getting back to the top

$
0
0

I’m having trouble returning my scrollable area to the top programmatically.
I’ve tried using saving the default position to an App shared Point property using ScrollPositionXC when opening the scrollable area control:
App.ScrollPos=me.ScrollPositionXC

However, this always saves the point (0,0)

If I try to restore this position using:
sa.ScrollToXC(App.ScrollPos,True)=App.ScrollPos

This doesn’t return the MobileScrollableArea (sa) to the home position, but just somewhere close to it. If I check the ScrollPositionXC again with a temporary button, I see the correct Y figure would be -64 or -98.66667 (depending on device) but I don’t appear to be able to capture this value for re-use using Opening events.

I also tried using sa.SetScrollsToTopXC(True) but this doesn’t seem to do anything at all.

Appreciate any advice.

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3762

Trending Articles