News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Plugin::BuildMenu (wxMenuBar*) never gets called [resolved]

Started by stardust, March 02, 2007, 10:43:36 AM

Previous topic - Next topic

stardust

Hi,

in a plugin, I intend to make changes to the main menu.

The plugin compiles and can be installed without problems and appears in the "Plugins" submenu. I created the plugin with a wizard and checked the "plugin changes menu" box.

However, the auto-created method ::BuildMenu(wxMenuBar*) never gets called even though I can see the "Updating menu..." progress bar.

I rather expected adding/removing menu items, toolbottons and the like in ::OnAttach/::OnDetach, i.e. when initializing/deinitializing the plugin. Even if ::BuildMenu was called I would not know wether I had to add the items or to remove them...

This applies to both under linux and windows. So I obviously have some misunderstandings of what a plugin is or what is not, and what it's limitations are?

svn is 3655 (linux) resp. 3652 (win)

Own SVN builds (quite new) • SuSE Linux 10.0 • Linux kernel 2.6.13-15-default
gcc 4.0.2 (20050901)
wxGTK-2.6.1.0-4 • KDE 3.4.2b • gtk2 2.8.3-4

mandrav

Your plugin inherits from cbToolPlugin. This plugin type doesn't receive events for menus/toolbar. Change your plugin class to inherit from cbPlugin if you want full access.
Be patient!
This bug will be fixed soon...

stardust

Own SVN builds (quite new) • SuSE Linux 10.0 • Linux kernel 2.6.13-15-default
gcc 4.0.2 (20050901)
wxGTK-2.6.1.0-4 • KDE 3.4.2b • gtk2 2.8.3-4