Author Topic: Close debugger toolbar programmatically  (Read 5602 times)

gringo

  • Guest
Close debugger toolbar programmatically
« 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

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Close debugger toolbar programmatically
« Reply #1 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)

gringo

  • Guest
Re: Close debugger toolbar programmatically
« Reply #2 on: June 14, 2007, 05:29:26 pm »
Ok, this works, thank you.