Author Topic: Code::Blocks Toolbar Class  (Read 2563 times)

Offline Cinolt

  • Multiple posting newcomer
  • *
  • Posts: 22
Code::Blocks Toolbar Class
« on: August 13, 2010, 01:39:04 am »
Hi, the wxWidgets wxToolBar class is a bit buggy as it can't even display 16x16 buttons without producing a noticeable gap at the bottom. I noticed the toolbars that Code::Blocks uses are different and seem to be more stable, can someone tell me which class Code::Blocks uses for its toolbars?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Code::Blocks Toolbar Class
« Reply #1 on: August 13, 2010, 06:59:01 am »
We use wxToolbar, but we call SetToolBitmapSize(...) before adding any tools.
You can see what we do exactly in src/main.cpp:1423 ( void MainFrame::DoAddPluginToolbar(cbPlugin* plugin) ) in the C::B sources.