- wxButtonBase::SetLabel(label);
-}
-
-wxBitmap wxButton::DoGetBitmap(State which) const
-{
- return m_bitmaps[which];
-}
-
-void wxButton::DoSetBitmap(const wxBitmap& bitmap, State which)
-{
- m_bitmaps[which] = bitmap;
-
- if ( which == State_Normal )
- m_peer->SetBitmap(bitmap);
- else if ( which == State_Pressed )
- {
- wxButtonImpl* bi = dynamic_cast<wxButtonImpl*> (m_peer);
- if ( bi )
- bi->SetPressedBitmap(bitmap);
- }
- InvalidateBestSize();
-}
-
-void wxButton::DoSetBitmapPosition(wxDirection dir)
-{
- m_peer->SetBitmapPosition(dir);
- InvalidateBestSize();