Question about Boa-Constructor Menus

Hi,

I am just starting to play with Boa-Constructor, and am impressed by its
features. I am having difficulty with one aspect of its operation
however: creating menus.

I go through the following process:
Create a new wxApp
In the designer, I drop a wxMenu on the Dataview page
Using the Inspector, I create a heading and choices
I hook up the event handler to choices

After doing this and posting, the frame source code seems to have
everything it needs in it: calls to initialize the menu, and the
functions for processing the choices.

Trouble is, when I run the app, no menu appears (no errors do either).
What step-by-step do I need to do to create an app with a wxMenu?

Thanks,

Duane

Hi Duane,

I have not been monitoring my mail box lately, so I appologise if you
have already received a reply.

I presume that you have read the getting started guide. I would appreciate
it if, once you have got used to working with Menus, you could look back
over
the guide, and give me pointers on improving that section.

I presume that you are talking about a menubar, with drop down menus.
wxMenus need to be activated by something visually, i.e. a menubar or
button,
or event handler.

To create a menu you need to do the following steps.

    1. Create a wxMenu. I see from your text, that you are
            already doing this correctly. It is built in the Data view.
    2. Create a wxMenuBar. This is also created on the data view.
    3. Edit the menubar. Add each menu that you require to
            the menu bar.
    4. Select the frame. The properties notebook page has a field
            called menubar. Select your menubar here.
    5. Save

[I have not yet worked out how to make the title of the wxMenu not appear.
]

The relationships are:

    The Frame knows about the menubar because of the Properties setting on
the wxFrame.
    The MenuBar knows about the wxMenus because of the Menus property
    The Menus have event handlers, which invoke code.

        [obviously, if you are missing an item on the chain, the menu
doesn't work]

The Examples directory contains an example called Notebook, which has
a menubar and drop down menus.

If you continue to have problems, please send me the code, and I will have
a
look at it.

Kaufman, Duane (MED, LUNAR)" wrote:

ยทยทยท

Hi,

I am just starting to play with Boa-Constructor, and am impressed by its
features. I am having difficulty with one aspect of its operation
however: creating menus.

I go through the following process:
Create a new wxApp
In the designer, I drop a wxMenu on the Dataview page
Using the Inspector, I create a heading and choices
I hook up the event handler to choices

After doing this and posting, the frame source code seems to have
everything it needs in it: calls to initialize the menu, and the
functions for processing the choices.

Trouble is, when I run the app, no menu appears (no errors do either).
What step-by-step do I need to do to create an app with a wxMenu?

Thanks,

Duane

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users