iOS Control Instantiation problem
Ken Ray
kray at sonsothunder.com
Mon Apr 9 03:22:04 EDT 2012
On Apr 9, 2012, at 12:01 AM, J. Landman Gay wrote:
> On 4/8/12 9:44 PM, Ken Ray wrote:
>
>> local sScrollerID
>> on ShowScroller pViewRect,pContentHt
>> -- pViewRect is the rect of the group that contains the scrolling list field I'm overlaying
>> -- pContentHt is the total height of the content of the scrolling list field as if it didn't
>> -- need to scroll
>> if the platform is "iphone" then
>> put "0,0,"& (item 3 of pViewRect)& ","& pContentHt into tContentRect
>
> I still haven't figured out why the rect always has to start at "0,0". You'd think it would start at the topleft of the scrollable group but that doesn't work.
I think it needs to be relative to the topleft of the scrollable group, just like objects on a card are relative to the topleft of the card.
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list