]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/btncmn.cpp
implement button support for pre-XP systems (or with themes disabled); using only...
[wxWidgets.git] / src / common / btncmn.cpp
index 2207057082642a08cd12d213b9d7563f03b79b94..670dceacdf4963615f7a08578f2aa0a9b8b106d2 100644 (file)
@@ -44,4 +44,16 @@ wxWindow *wxButtonBase::SetDefault()
     return tlw->SetDefaultItem(this);
 }
 
+void wxButtonBase::SetBitmapPosition(wxDirection dir)
+{
+    wxASSERT_MSG( !(dir & ~wxDIRECTION_MASK), "non-direction flag used" );
+    wxASSERT_MSG( !!(dir & wxLEFT) +
+                    !!(dir & wxRIGHT) +
+                      !!(dir & wxTOP) +
+                       !!(dir & wxBOTTOM) == 1,
+                   "exactly one direction flag must be set" );
+
+    DoSetBitmapPosition(dir);
+
+}
 #endif // wxUSE_BUTTON