Page 1 of 1

Why No "on openGroup" etc message

Posted: Fri May 22, 2015 10:38 am
by istech
Hi All,


I have been using LC for a while now and use the groups feature quite a lot. However I find that we can use groups like a control or a card or even a stack. So I was thinking why would you not add the feature to have "openGroup" or c"loseGroup" messages etc. This would seem like a logical step to make. No?

Maybe I am missing something and someone can comment on it.

Thanks

Re: Why No "on openGroup" etc message

Posted: Fri May 22, 2015 11:51 am
by Klaus
Hi istech,

check the "openbackground", "closebackground" and related messages in the dictionary! :D


Best

Klaus

Re: Why No "on openGroup" etc message

Posted: Mon Jun 15, 2015 2:52 pm
by istech
Thanks Klaus,

Sort of what I was looking for. Looking for a message to be sent when a group become visible. Can not see much in regards to this.

Maybe you can add something I am missing as openbackground is only sent when you go to a card

Thanks

Re: Why No "on openGroup" etc message

Posted: Mon Jun 15, 2015 2:53 pm
by Klaus
istech wrote:Maybe you can add something I am missing as openbackground is only sent when you go to a card
No, sorry, that's all we have.

Re: Why No "on openGroup" etc message

Posted: Mon Jun 15, 2015 3:59 pm
by FourthWorld
There's also an openControl message sent to any group when the card it's on is opened. If the group's backgroundBehavior is set it'll get openBackground first, then openControl. But openControl will be sent regardless of the backgroundBehavior, so it sounds like just what you need to allow a group object to initialize itself before being rendered for the user.