Page 1 of 1

Get the names of a group hierarchy

Posted: Sat Sep 26, 2015 2:15 pm
by kolia
Hello,
I have a set of controls that are grouped in several groups. Because this set of controls is duplicated, the mouse handlers will be put in the top level group. Then arises the need to get the names of each group and the name of the control that the user clicked in order to take some action. I understand that target delivers the name of the control that has been clicked. Now how do I get the names of each group that the message path went through?
I hope I'm clear
Thank you
Nicolas

Re: Get the names of a group hierarchy

Posted: Sat Sep 26, 2015 2:50 pm
by bn
Hi Nicolas,

check the owner. It gives you the one next up. If the groups are nested you can test until the owner is the card, the one before that is the top group.
check for owner, then for owner of owner and so on. repeat until word 1 of the owner is "card".

Kind regards

Bernd

Re: Get the names of a group hierarchy

Posted: Sat Sep 26, 2015 6:17 pm
by kolia
Thanks Bernd, this is excatly what I was looking for
Nicolas