I’ve been working on a new application, and I created a menu bar for it today based on the code in the Juce demo application. The only significant difference between my application and the Juce demo application was that I separated the menu bar code from the content component code so that both are two independent classes. Well, after I added the menu bar, all the menu items showed up correctly, but they’re all inactive.
I’ve been experimenting for a couple of hours trying to solve this problem, but nothing I’ve tried seems to work. I tried all the obvious solutions. For instance in the method getCommandInfo() I set setActive() to true for every ApplicationCommandInfo object. I called commandStatusChanged() on the ApplicationCommandManager in this method. I tried calling this same method again after all the menus and user interface stuff was built to make it reload the ApplicationCommandInfo objects. But none of this has helped.
Does anyone have any idea what might be causing this behavior? I’m thinking about dumping the ApplicationCommandManager altogether so that I can manually set the active status when adding the items to the menu.