From a0a4f762d3473e95d433651bc53e0ab27794cc33 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 11 Jul 2007 15:16:03 +0000 Subject: [PATCH] forcing bitmap type git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/bmpbuttn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mac/carbon/bmpbuttn.cpp b/src/mac/carbon/bmpbuttn.cpp index 1d207d4ac3..b32889d8c3 100644 --- a/src/mac/carbon/bmpbuttn.cpp +++ b/src/mac/carbon/bmpbuttn.cpp @@ -110,7 +110,8 @@ bool wxBitmapButton::Create( wxWindow *parent, #ifdef __WXMAC_OSX__ if ( HasFlag( wxBORDER_NONE ) ) { - wxMacCreateBitmapButton( &info, m_bmpNormal ); + // contrary to the docs this control only works with iconrefs + wxMacCreateBitmapButton( &info, m_bmpNormal, kControlContentIconRef ); err = CreateIconControl( MAC_WXHWND(parent->MacGetTopLevelWindowRef()), &bounds, &info, false, m_peer->GetControlRefAddr() );