]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/checkbox.h
fix for sf bug 1448153: Widgets sample hangs on Japanese radio label
[wxWidgets.git] / include / wx / checkbox.h
index 8eea49bcaba0015c4b02b900b0d6c3d3ba135f41..930d3d8e71b905fcb9dc7efb75ca26d5f85599ee 100644 (file)
@@ -108,6 +108,13 @@ public:
 
     virtual bool HasTransparentBackground() { return true; }
 
+    // wxCheckBox-specific processing after processing the update event
+    virtual void DoUpdateWindowUI(wxUpdateUIEvent& event)
+    {
+        if ( event.GetSetChecked() )
+            SetValue(event.GetChecked());
+    }
+
 protected:
     virtual void DoSet3StateValue(wxCheckBoxState WXUNUSED(state)) { wxFAIL; }