News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Close debugger toolbar programmatically

Started by gringo, June 14, 2007, 03:05:01 PM

Previous topic - Next topic

gringo

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

dmoore

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)
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

gringo