diff options
Diffstat (limited to 'wx+/toggle_button.h')
-rw-r--r-- | wx+/toggle_button.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wx+/toggle_button.h b/wx+/toggle_button.h index 858082d3..e532d9d8 100644 --- a/wx+/toggle_button.h +++ b/wx+/toggle_button.h @@ -8,6 +8,7 @@ #define TOGGLEBUTTON_H_INCLUDED #include <wx/bmpbuttn.h> +#include <wx+/bitmap_button.h> class ToggleButton : public wxBitmapButton { @@ -68,7 +69,7 @@ inline void ToggleButton::setActive(bool value) { active = value; - SetBitmapLabel(active ? activeBmp_ : inactiveBmp_); + zen::setImage(*this, active ? activeBmp_ : inactiveBmp_); } #endif // TOGGLEBUTTON_H_INCLUDED |