wx hack: autosize toolbar buttons

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1627 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2011-01-21 11:44:48 +00:00
parent 257e8ebbff
commit b76ec8d060
+15
View File
@@ -156,3 +156,18 @@ patch: apply http://trac.wxwidgets.org/ticket/8556
should be in 2.10 and HEAD already should be in 2.10 and HEAD already
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
purpose: Allow different size toolbar buttons
patch: see http://stackoverflow.com/questions/868637/wxtoolbar-with-dynamically-sized-buttons
file: src/msw/tbar95.cpp
line: 989 (wx2.8.11)
old:
bitmapId++;
break;
new:
// @@@ See http://stackoverflow.com/questions/868637/wxtoolbar-with-dynamically-sized-buttons
button.fsStyle |= TBSTYLE_AUTOSIZE;
bitmapId++;
break;
// -----------------------------------------------------------------------------