X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bdb5436554c910fe850db1470514ee83ded76db3..22e3c5bd85233ba23fbb62cd421a7dd173adfa73:/src/palmos/checkbox.cpp diff --git a/src/palmos/checkbox.cpp b/src/palmos/checkbox.cpp index 77f06f5409..e6ebf0bd09 100644 --- a/src/palmos/checkbox.cpp +++ b/src/palmos/checkbox.cpp @@ -106,8 +106,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 @@ -117,11 +119,20 @@ wxSize wxCheckBox::DoGetBestSize() const void wxCheckBox::SetValue(bool val) { + SetBoolValue(val); } bool wxCheckBox::GetValue() const { - return false; + 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)