iOS Control Instantiation problem
Ralph DiMola
rdimola at evergreeninfo.net
Mon Apr 9 11:39:30 EDT 2012
-----Original Message-----
From: use-livecode-bounces at lists.runrev.com
[mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of J. Landman Gay
Sent: Monday, April 09, 2012 11:08 AM
To: How to use LiveCode
Subject: Re: iOS Control Instantiation problem
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?
If the left side of the group and scrollable region (rect) are on screen and
> 0 then passing the right edge of the group (card-relative) as the third
parameter of the contentrect will just make the virtual horizontal
scrollable region a little wider than needed.
Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net
More information about the use-livecode
mailing list