From b76ec8d060e485b371ebfb3e3339ccfb404b4136 Mon Sep 17 00:00:00 2001 From: twanvl Date: Fri, 21 Jan 2011 11:44:48 +0000 Subject: [PATCH] wx hack: autosize toolbar buttons git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1627 0fc631ac-6414-0410-93d0-97cfa31319b6 --- tools/wx-changes/fixes.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/wx-changes/fixes.txt b/tools/wx-changes/fixes.txt index d936d5bb..c6b8b78a 100644 --- a/tools/wx-changes/fixes.txt +++ b/tools/wx-changes/fixes.txt @@ -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; + +// -----------------------------------------------------------------------------