Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: gringo on June 14, 2007, 03:05:01 pm

Title: Close debugger toolbar programmatically
Post by: gringo on June 14, 2007, 03:05:01 pm
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
Title: Re: Close debugger toolbar programmatically
Post by: dmoore on June 14, 2007, 04:01:59 pm
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)
Title: Re: Close debugger toolbar programmatically
Post by: gringo on June 14, 2007, 05:29:26 pm
Ok, this works, thank you.