diff options
Diffstat (limited to 'views/controls/button/checkbox.cc')
-rw-r--r-- | views/controls/button/checkbox.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/views/controls/button/checkbox.cc b/views/controls/button/checkbox.cc index c45bd52..9120ace 100644 --- a/views/controls/button/checkbox.cc +++ b/views/controls/button/checkbox.cc @@ -165,6 +165,12 @@ void Checkbox::InitBorder() { // No border, so we do nothing. } +void Checkbox::SetLabel(const std::wstring& label) { + NativeButton::SetLabel(label); + if (!native_wrapper_->UsesNativeLabel()) + label_->SetText(label); +} + //////////////////////////////////////////////////////////////////////////////// // Checkbox, protected: |