> 
> Aha!  Solved it by using an observer in the class that manages my
> dynamic menus.
> 
> Gambas is such a thing of beauty.  :-)
> 

You can do it without an Observer, too. Observers duplicate events to there 
could be some overhead
with this solution (unless that behaviour is desired) - besides the memory used 
for the Observer
object: Just re-attach those objects that you want to 'Group' to their parents 
with the same event
name:

For Each hObj In myGroupObjs
  Object.Attach(hObj, Object.Parent(hObj), sNewGroup)
Next

This could prevent former event handlers to interfere... (Just guessing. It's a 
matter of your
application)

Regards,
Tobi

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to