I need to close the debugger toolbar when my plugin is activated, because it replaces the gdb's debug menu with an own debug menu, which activates an external debugger.
I tried to call wxMenuItem::Check(false) on the View->Toolbar->Debug menu item, but this didn't work.
Has anyone suggestions, how a can get rid of the debugger toolbar and why the calling of Check failed?
Best regards,
gringo
I don't think check propagates the wxCommandEvent that you will need to get the toolbar to hide.
try creating the event then calling:
::wxPostEvent(handler, event)
Ok, this works, thank you.