[quote=“valley”]any component, or class that wants to receive application command events must:
a) be a descendant of ApplicationCommandTarget.
b) be registered by a call to ApplicationCommandManager::registerAllCommandsForTarget()
Then you need to give some thought to how your event will trickle up to the target. If the target is a focussed component, you’re fine. Otherwise, you might need to do something clever in a parent component to endure that the command callback reaches the desired target.[/quote]
I’ve done A and B.
The menu is coming from the component, not the main window. The reason for doing that is so I can keep all button control code in the same place. I was trying to follow the demo and it just doesn’t seem to be working.
Can you read the code I posted and maybe spot the problem?