iOS Control Instantiation problem

J. Landman Gay jacque at hyperactivesw.com
Mon Apr 9 11:07:39 EDT 2012


On 4/9/12 2:22 AM, Ken Ray wrote:
>
> 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.

That would make sense, but then how come we can pass the right edge of 
the group (card-relative) as the third parameter? Shouldn't the third 
param be the width of the group?

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list