whoa. everyone else's replies didn't show up until just now, and they're all above mine. weird email glitch this AM.
On Fri, Jan 5, 2018 at 8:48 AM, Mike Kerner <mikeker...@roadrunner.com> wrote: > uhhh guessing: can you check if the object has a parent? If the parent > is a datagrid, then the object is not a datagrid > > On Thu, Jan 4, 2018 at 7:13 PM, Bob Sneidar via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> Given an object reference, how can I tell the object is a datagrid? You >> might say, get the dgProp ["control type"], but every object contained >> within a datagrid group will ALSO return "data grid". In fact, EVERY dgProp >> arguement for every item in a datagrid group will do the same. >> >> The reason I ask is that I want to get the minimum left/top and maximum >> right/bottom of every VISIBLE object on a card that is NOT a group but >> notwithstanding INCLUDING Datagrids, so that I can set the rect of the card >> containing them in a consistent way. The thing is, groups have margins (I'm >> not going to set the margins of all my groups to 0) and these are not >> visible, so could skew the positioning of what IS visible. Datagrids do NOT >> have margins that I can tell, even though they are groups. For example, if >> I had a group on the left edge but not on the right edge, the objects on >> the card would look off center. >> >> Bob S >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode