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
This commit is contained in:
@@ -90,10 +90,11 @@ bool wxToolBar::DoDeleteTool(size_t pos, wxToolBarToolBase *tool)
|
|||||||
|
|
||||||
void wxToolBar::DoEnableTool(wxToolBarToolBase *tool, bool enable)
|
void wxToolBar::DoEnableTool(wxToolBarToolBase *tool, bool enable)
|
||||||
{
|
{
|
||||||
// TODO: figure out why it gives a BadMatch when
|
// Comment this out if you don't want the disabled look,
|
||||||
// creating the bitmap (out.ConvertToBitmap).
|
// which currently acts weirdly for the scissors icon
|
||||||
// Possibly we should ensure all depths match.
|
// in the toolbar sample. See src/common/tbarbase.cpp
|
||||||
#if 0
|
// for the wxCreateGreyedImage function.
|
||||||
|
#if 1
|
||||||
// Created disabled-state bitmap on demand
|
// Created disabled-state bitmap on demand
|
||||||
if (!enable && !tool->GetBitmap2().Ok())
|
if (!enable && !tool->GetBitmap2().Ok())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user