]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/checkbox.cpp
Moved #if wxUSE_COMBOBOX after real wx/wxprec.h include.
[wxWidgets.git] / src / palmos / checkbox.cpp
index 5b55dd7c0024b6f38a9fe8bb10876f58b4bbb294..e6ebf0bd09bc0ce63bec2f77cc3658527eafa120 100644 (file)
@@ -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
@@ -125,6 +127,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)
 {
 }