mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -156,3 +156,18 @@ patch: apply http://trac.wxwidgets.org/ticket/8556
|
||||
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;
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user