]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/univ/anybutton.h
Fixed buttons having no border in wxUniv by default.
[wxWidgets.git] / include / wx / univ / anybutton.h
diff --git a/include/wx/univ/anybutton.h b/include/wx/univ/anybutton.h
new file mode 100644 (file)
index 0000000..6743fa4
--- /dev/null
@@ -0,0 +1,33 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        wx/univ/anybutton.h
+// Purpose:     wxAnyButton class
+// Author:      Vadim Zeitlin
+// Created:     2000-08-15 (extracted from button.h)
+// RCS-ID:      $Id$
+// Copyright:   (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
+// Licence:     wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_UNIV_ANYBUTTON_H_
+#define _WX_UNIV_ANYBUTTON_H_
+
+// ----------------------------------------------------------------------------
+// Common button functionality
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase
+{
+public:
+    wxAnyButton() {}
+
+    virtual ~wxAnyButton() {};
+
+protected:
+    // choose the default border for this window
+    virtual wxBorder GetDefaultBorder() const { return wxBORDER_STATIC; }
+
+private:
+    wxDECLARE_NO_COPY_CLASS(wxAnyButton);
+};
+
+#endif // _WX_UNIV_ANYBUTTON_H_