Code::Blocks

User forums => Using Code::Blocks => Topic started by: koen on April 03, 2007, 12:01:42 pm

Title: wxSmith: How to connect wxMenu to wxMenuBar
Post by: koen on April 03, 2007, 12:01:42 pm
Hi,

I was trying to create menus with wxSmith. Just as a test, I created a wxMenuBar, and added one item (Label: 'File'). I then created a wxMenu, and added two items (labels: 'Open' and 'Close'). Obviously, I want this menu to be connected to the File menu. Did I miss a simple option to do so within wxSmith? Or do I have to code this manually?

Thanks!

Koen
Title: Re: wxSmith: How to connect wxMenu to wxMenuBar
Post by: mandrav on April 03, 2007, 01:08:57 pm
in the wxMenuBar editor, where you created 'File', add entries under the 'File' menu (press the '>' button to move your entry under this menu).
The wxMenu editor is for popup menus.
Title: Re: wxSmith: How to connect wxMenu to wxMenuBar
Post by: koen on April 03, 2007, 01:40:28 pm
Ah, I see. I feel kind of stupid... Anyway, thanks for the pointer!

Koen
Title: Re: wxSmith: How to connect wxMenu to wxMenuBar
Post by: sibbi77 on May 01, 2007, 11:37:07 am
Thanks for the hint ... it's not that obvious!