Could you post more of a code sample so I can test it out for you?
Edit:
Are you trying to then obtain a 'MENU_CLICK' event from the main window? If so, this will never work. You will need to handle all of the events/triggers from the mainwindow in your own code then, blue gui events will no longer work when you have blue gui controls within a window which you tell to create a gadget from. It is sort of a rendundancy to do so anyways. If I understand what you are looking to do, you will need to try a different approach. It is not a bug, simply a different 'layer'.
"We are what we repeatedly do. Excellence, therefore, is not an act, but a habit." - Aristotle