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
Why No "on openGroup" etc message
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Why No "on openGroup" etc message
Hi istech,
check the "openbackground", "closebackground" and related messages in the dictionary!
Best
Klaus
check the "openbackground", "closebackground" and related messages in the dictionary!

Best
Klaus
Re: Why No "on openGroup" etc message
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
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
No, sorry, that's all we have.istech wrote:Maybe you can add something I am missing as openbackground is only sent when you go to a card
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Why No "on openGroup" etc message
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn