From: Julian Smart Date: Mon, 25 Feb 2002 11:35:52 +0000 (+0000) Subject: Put tool disabling back in, but we need to debug wxCreateGreyedImage X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a14a22278aaa94e2f162ac7c294d1ddecfef9e47 Put tool disabling back in, but we need to debug wxCreateGreyedImage since the scissors icon in the demo gets munged git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/univ/toolbar.cpp b/src/univ/toolbar.cpp index 995c4164aa..f856622df2 100644 --- a/src/univ/toolbar.cpp +++ b/src/univ/toolbar.cpp @@ -90,10 +90,11 @@ bool wxToolBar::DoDeleteTool(size_t pos, wxToolBarToolBase *tool) void wxToolBar::DoEnableTool(wxToolBarToolBase *tool, bool enable) { - // TODO: figure out why it gives a BadMatch when - // creating the bitmap (out.ConvertToBitmap). - // Possibly we should ensure all depths match. -#if 0 + // Comment this out if you don't want the disabled look, + // which currently acts weirdly for the scissors icon + // in the toolbar sample. See src/common/tbarbase.cpp + // for the wxCreateGreyedImage function. +#if 1 // Created disabled-state bitmap on demand if (!enable && !tool->GetBitmap2().Ok()) {