Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Cinolt on August 13, 2010, 01:39:04 am

Title: Code::Blocks Toolbar Class
Post by: Cinolt 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?
Title: Re: Code::Blocks Toolbar Class
Post by: Jenna 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.