Getting the "owner" of a control
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Getting the "owner" of a control
I have a need to to find out whether an object on a card is part of a group or placed directly on the card, and then to get the name of the group or card. If the object is in a group, I would have to allow for the fact that the group may be part of another group.
Is there a way to traverse the hierarchy of objects that an object belongs to?
Thanks,
Pete
Is there a way to traverse the hierarchy of objects that an object belongs to?
Thanks,
Pete
Thanks Klaus!!! I guess RTFM should be my mantra!
I guess I may be missing this but is there a place in any of the documentation where you can list all the properties and messages related to a particular type of object? In other words, I search,eg, for "Field" and get a list of all the messages/properties associated with any field object.
Thanks,
Pete
I guess I may be missing this but is there a place in any of the documentation where you can list all the properties and messages related to a particular type of object? In other words, I search,eg, for "Field" and get a list of all the messages/properties associated with any field object.
Thanks,
Pete
Dear Pete,
You might want to check the two handlers available at http://runrev.info/Objects%20list.htm . These two getProp handlers return a list of controls of any group, card or stack. Just use the syntax
Best,
Mark
You might want to check the two handlers available at http://runrev.info/Objects%20list.htm . These two getProp handlers return a list of controls of any group, card or stack. Just use the syntax
Code: Select all
put the objects of group 1 into myObjects1
put the objects of this stack into myObjects2
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode