// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: button.cpp 54845 2008-07-30 14:52:41Z SC $
+// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
return wxSize( 23 , 23 ) ;
wxRect r ;
- m_peer->GetBestRect(&r);
+ GetPeer()->GetBestRect(&r);
wxSize sz = r.GetSize();
sz.x = sz.x + MacGetLeftBorderSize() +
wxWidgetCocoaImpl::SetBitmap(bitmap);
}
+#if wxUSE_MARKUP
virtual void SetLabelMarkup(const wxString& markup)
{
wxMarkupToAttrString toAttr(GetWXPeer(), markup);
[GetNSButton() setAttributedTitle:attrString];
}
+#endif // wxUSE_MARKUP
void SetPressedBitmap( const wxBitmap& bitmap )
{
SetBezelStyleFromBorderFlags(v, style);
- if (bitmap.Ok())
+ if (bitmap.IsOk())
[v setImage:bitmap.GetNSImage() ];
[v setButtonType:NSMomentaryPushInButton];