X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba88951339bb5ae38d11394b25041b7e019b6883..e15f0a5ea372e3a6c693fb6aa4fe73893a9af797:/src/palmos/checkbox.cpp?ds=sidebyside diff --git a/src/palmos/checkbox.cpp b/src/palmos/checkbox.cpp index 5b55dd7c00..75e98f33be 100644 --- a/src/palmos/checkbox.cpp +++ b/src/palmos/checkbox.cpp @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "checkbox.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -37,6 +33,8 @@ #include "wx/settings.h" #endif +#include + // ============================================================================ // implementation // ============================================================================ @@ -106,8 +104,10 @@ bool wxCheckBox::Create(wxWindow *parent, const wxValidator& validator, const wxString& name) { - wxControl::PalmCreateControl(checkboxCtl, parent, id, label, pos, size); - return true; + if(!wxControl::Create(parent, id, pos, size, style, validator, name)) + return false; + + return wxControl::PalmCreateControl(checkboxCtl, label, pos, size); } wxSize wxCheckBox::DoGetBestSize() const @@ -125,6 +125,14 @@ bool wxCheckBox::GetValue() const return GetBoolValue(); } +bool wxCheckBox::SendClickEvent() +{ + wxCommandEvent event(wxEVT_COMMAND_CHECKBOX_CLICKED, GetId()); + event.SetInt(GetValue()); + event.SetEventObject(this); + return ProcessCommand(event); +} + void wxCheckBox::Command(wxCommandEvent& event) { }