summaryrefslogtreecommitdiff
path: root/wx+/toggle_button.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:31:23 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:31:23 +0200
commit851b6f99c1248c8ec8e33322a3179c1d82fdd515 (patch)
tree5b9abf4c4e648ea48ed4873e3c4bf1b225c64daf /wx+/toggle_button.h
parent6.1 (diff)
downloadFreeFileSync-851b6f99c1248c8ec8e33322a3179c1d82fdd515.tar.gz
FreeFileSync-851b6f99c1248c8ec8e33322a3179c1d82fdd515.tar.bz2
FreeFileSync-851b6f99c1248c8ec8e33322a3179c1d82fdd515.zip
6.2
Diffstat (limited to 'wx+/toggle_button.h')
-rw-r--r--wx+/toggle_button.h3
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
bgstack15