Hi Louis,
Ohh yeah, lots of problems in that stack, but no problem, easy fixes.
First remove all mobileControlSet that are listed as iOS only, it's in the dictionary.
Add these to the top of the card;
Code: Select all
local oldScroll
local sScrollerID1
Yes, I know you set sScrollerID1 to a local but you set it inside a handler. Remove it from inside the handler.
Then in your removeScroller handler change to this;
Code: Select all
mobileControlDelete "sScrollerID1"
Sure the dictionary say's you can use it's name, maybe you can I just didn't test it. You'd have to make the name a local as well I think.
OK so that gets you set to do the return from the other card and sets the vscroll correctly.
Good?
Great
Now the scrollbarEnd, it's only for a liveCode scrollbar not native
To figure out when you are at the end you have to... ok ready
(the field height + the field margin) - the grp height
In this stack it is
(1334 + 8 ) - 500
to actually see it change this line in scrollerDidScroll
Code: Select all
else
put vOffset into field "scrollerLocation"
--put empty into field "scrollerLocation"
end if
scrolling down to the bottom will show you 842
phew, what fun!
Simon
Edit; Great example stack showing the problem, easiest way to help find the problem.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!