X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..6d8978f030996c834fcd29d85d95ebe261b8defc:/include/wx/univ/radiobut.h?ds=sidebyside diff --git a/include/wx/univ/radiobut.h b/include/wx/univ/radiobut.h index 43f2ee7678..2ab0344549 100644 --- a/include/wx/univ/radiobut.h +++ b/include/wx/univ/radiobut.h @@ -12,21 +12,17 @@ #ifndef _WX_UNIV_RADIOBUT_H_ #define _WX_UNIV_RADIOBUT_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "univradiobut.h" -#endif - #include "wx/checkbox.h" // ---------------------------------------------------------------------------- // wxRadioButton // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxRadioButton : public wxCheckBox +class WXDLLIMPEXP_CORE wxRadioButton : public wxCheckBox { public: // constructors - wxRadioButton(); + wxRadioButton() { Init(); } wxRadioButton(wxWindow *parent, wxWindowID id, @@ -35,7 +31,12 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, - const wxString& name = wxRadioButtonNameStr); + const wxString& name = wxRadioButtonNameStr) + { + Init(); + + Create(parent, id, label, pos, size, style, validator, name); + } bool Create(wxWindow *parent, wxWindowID id, @@ -50,6 +51,8 @@ public: virtual void ChangeValue(bool value); protected: + virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; } + // implement our own drawing virtual void DoDraw(wxControlRenderer *renderer);