X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bc21780e18681dee05e032e16d15eba57dd4fcb4..f082dcd598c2489b67a32528cdf263918d92b449:/include/wx/motif/tglbtn.h diff --git a/include/wx/motif/tglbtn.h b/include/wx/motif/tglbtn.h index d6cdadd009..b0af6483bb 100644 --- a/include/wx/motif/tglbtn.h +++ b/include/wx/motif/tglbtn.h @@ -15,7 +15,7 @@ #include "wx/checkbox.h" -class WXDLLEXPORT wxToggleButton : public wxCheckBox +class WXDLLIMPEXP_CORE wxToggleButton : public wxCheckBox { public: wxToggleButton() { Init(); } @@ -37,13 +37,17 @@ public: long style = 0, const wxValidator& val = wxDefaultValidator, const wxString &name = wxCheckBoxNameStr ); + +protected: + virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; } + private: DECLARE_DYNAMIC_CLASS(wxToggleButton) // common part of all constructors void Init() { - m_evtType = wxEVT_COMMAND_TOGGLEBUTTON_CLICKED; + m_evtType = wxEVT_TOGGLEBUTTON; } };