projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patch from Bo, adapt generic code to new API, add GetItemRect and HitTest
[wxWidgets.git]
/
include
/
wx
/
checkbox.h
diff --git
a/include/wx/checkbox.h
b/include/wx/checkbox.h
index 8eea49bcaba0015c4b02b900b0d6c3d3ba135f41..0fa2516ca319152340b5ab1a2b63a904ca6f98a4 100644
(file)
--- a/
include/wx/checkbox.h
+++ b/
include/wx/checkbox.h
@@
-108,6
+108,15
@@
public:
virtual bool HasTransparentBackground() { return true; }
virtual bool HasTransparentBackground() { return true; }
+ // wxCheckBox-specific processing after processing the update event
+ virtual void DoUpdateWindowUI(wxUpdateUIEvent& event)
+ {
+ wxControl::DoUpdateWindowUI(event);
+
+ if ( event.GetSetChecked() )
+ SetValue(event.GetChecked());
+ }
+
protected:
virtual void DoSet3StateValue(wxCheckBoxState WXUNUSED(state)) { wxFAIL; }
protected:
virtual void DoSet3StateValue(wxCheckBoxState WXUNUSED(state)) { wxFAIL; }