> 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?
Yes, *if* you don't want horizontal scrolling with the scroller… here's a good
example of how I use it with a Data Grid that has more columns than are visible
and (of course) more rows than are visible ("grp 1" is my sample Data Grid):
iphoneControlSet sScrollerId, "rect", the rect of group 1
put sum(the dgProps["column widths"] of grp 1) into tContentWidth
put (the dgProp["row height"] of grp 1) * (the number of elements of the
dgData of grp 1) into tContentHeight
iphoneControlSet sScrollerId, "contentRect", (0, 0, tContentWidth,
tContentHeight)
Ken Ray
Sons of Thunder Software, Inc.
Email: [email protected]
Web Site: http://www.sonsothunder.com/
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode