X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c9a19aabab3a878b565e6c2a5f2a3824277c4dc..cb73e6001f891ae46b12a1e4ca39b93649cb6099:/src/msw/checkbox.cpp diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index 8dfdd9fd0e..16038179fd 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "checkbox.h" #endif @@ -47,7 +47,25 @@ // implementation // ============================================================================ +#if wxUSE_EXTENDED_RTTI +IMPLEMENT_DYNAMIC_CLASS_XTI(wxCheckBox, wxControl,"wx/checkbox.h") + +WX_BEGIN_PROPERTIES_TABLE(wxCheckBox) + WX_DELEGATE( OnClick , wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEvent ) + + WX_PROPERTY( Font , wxFont , SetFont , GetFont , ) + WX_PROPERTY( Label,wxString, SetLabel, GetLabel, wxEmptyString ) + WX_PROPERTY( Value ,bool, SetValue, GetValue, ) +WX_END_PROPERTIES_TABLE() + +WX_BEGIN_HANDLERS_TABLE(wxCheckBox) +WX_END_HANDLERS_TABLE() + +WX_CONSTRUCTOR_6( wxCheckBox , wxWindow* , Parent , wxWindowID , Id , wxString , Label , wxPoint , Position , wxSize , Size , long , WindowStyle ) +#else IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl) +#endif + // ---------------------------------------------------------------------------- // wxCheckBox