+ SetBitmap();
+}
+
+void wxBitmapButton::SetBitmapFocus( const wxBitmap& bitmap )
+{
+ wxCHECK_RET( m_widget != NULL, T("invalid button") );
+
+ if ( ! m_focus.Ok() ) return;
+ m_focus = bitmap;
+
+ SetBitmap();
+}
+
+void wxBitmapButton::SetBitmapLabel( const wxBitmap& bitmap )
+{
+ wxCHECK_RET( m_widget != NULL, T("invalid button") );
+
+ if (!m_bitmap.Ok()) return;
+ m_bitmap = bitmap;
+
+ SetBitmap();
+}
+
+void wxBitmapButton::SetBitmapSelected( const wxBitmap& bitmap )
+{
+ wxCHECK_RET( m_widget != NULL, T("invalid button") );
+
+ if ( ! m_selected.Ok() ) return;
+ m_selected = bitmap;
+
+ SetBitmap();
+}
+
+bool wxBitmapButton::Enable( bool enable )
+{
+ if ( !wxWindow::Enable(enable) )
+ return FALSE;
+
+ SetBitmap();
+
+ return TRUE;
+}
+
+void wxBitmapButton::HasFocus()
+{
+ m_hasFocus = TRUE;
+ SetBitmap();
+}
+
+void wxBitmapButton::NotFocus()
+{
+ m_hasFocus = FALSE;
+ SetBitmap();
+}
+
+void wxBitmapButton::StartSelect()
+{
+ m_isSelected = TRUE;
+ SetBitmap();
+}
+
+void wxBitmapButton::EndSelect()
+{
+ m_isSelected = FALSE;
+ SetBitmap();
+}