Post
by rumplestiltskin » Fri Jun 10, 2011 8:26 pm
In the "Mobile Scroller Example" stack, there's a group (which appears to be just four photos grouped together and named "Image Scroller"). It appears that all the magic is happening through the card script:
-- Create the scroller and store its id
iphoneControlCreate "scroller"
put the result into sScrollerId
-- The 'rect' is the region of the card it should cover
iphoneControlSet sScrollerId, "rect", the rect of group "Image Scroller"
-- The 'contentRect' is the region the scroller scrolls over
iphoneControlSet sScrollerId, "contentRect", (0, 0, 1600, 1200)
-- The 'visible' determines if the scroller is displayed
iphoneControlSet sScrollerId, "visible", "true"
-- The 'canBounce' determines whether the standard iOS 'bouncing' occurs
-- at extremities of scrolling
iphoneControlSet sScrollerId, "canBounce", "false"
-- The 'pagingEnabled' determines whether scrolling only happens in multiples
-- of the width/height
iphoneControlSet sScrollerId, "pagingEnabled", "false"
-- The 'canScrollToTop' determines whether touching the status bar scrolls
-- the scroller to the top
iphoneControlSet sScrollerId, "canScrollToTop", "true"
...and a bunch more stuff, as well.
The problem is that I can see nothing in any LiveCode documentation along the lines of "iPhoneControlCreate" or "iPhoneControlSet" nor do I see any user-created handlers so how is that command (function?) being handled? I'm looking for anything else in that stack that might provide the magic but I'm stumped.
Barry