adjust the toolbar tools bitmap size to fit the biggest bitmap used under wxOSX too, not only under MSW (and moved the code doing it to the common base class to avoid duplicating it)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -361,6 +361,9 @@ public:
|
||||
|
||||
// must be called after all buttons have been created to finish toolbar
|
||||
// initialisation
|
||||
//
|
||||
// derived class versions should call the base one first, before doing
|
||||
// platform-specific stuff
|
||||
virtual bool Realize();
|
||||
|
||||
// tools state
|
||||
@@ -602,6 +605,10 @@ protected:
|
||||
// un-toggle all buttons in the same radio group
|
||||
void UnToggleRadioGroup(wxToolBarToolBase *tool);
|
||||
|
||||
// make the size of the buttons big enough to fit the largest bitmap size
|
||||
void AdjustToolBitmapSize();
|
||||
|
||||
|
||||
// the list of all our tools
|
||||
wxToolBarToolsList m_tools;
|
||||
|
||||
|
Reference in New Issue
Block a user