X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdc468a0a6476eff5996c80580e27b506340c305..1ecc323f2609c8afea31948b9eac2d965cc84f5e:/src/univ/button.cpp?ds=sidebyside diff --git a/src/univ/button.cpp b/src/univ/button.cpp index 4d9a843084..7f4c253d14 100644 --- a/src/univ/button.cpp +++ b/src/univ/button.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: univ/button.cpp +// Name: src/univ/button.cpp // Purpose: wxButton // Author: Vadim Zeitlin // Modified by: @@ -79,8 +79,6 @@ static const wxCoord DEFAULT_BTN_MARGIN_Y = 0; // implementation // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl) - // ---------------------------------------------------------------------------- // creation // ---------------------------------------------------------------------------- @@ -127,7 +125,7 @@ bool wxButton::Create(wxWindow *parent, SetLabel(label); - if (bitmap.Ok()) + if (bitmap.IsOk()) SetBitmap(bitmap); // SetInitialSize called by SetBitmap() else SetInitialSize(size); @@ -172,7 +170,7 @@ wxSize wxButton::DoGetBestClientSize() const wxCoord width, height; dc.GetMultiLineTextExtent(GetLabel(), &width, &height); - if ( m_bitmap.Ok() ) + if ( m_bitmap.IsOk() ) { // allocate extra space for the bitmap wxCoord heightBmp = m_bitmap.GetHeight() + 2*m_marginBmpY; @@ -223,7 +221,7 @@ bool wxButton::DoDrawBackground(wxDC& dc) rect.width = size.x; rect.height = size.y; - if ( GetBackgroundBitmap().Ok() ) + if ( GetBackgroundBitmap().IsOk() ) { // get the bitmap and the flags int alignment;