summaryrefslogtreecommitdiff
path: root/wx+/button.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:19 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:19 +0200
commit0887aee8c54d0ed51bb2031431e2bcdafebb4c6e (patch)
tree69537ceb9787bb25ac363cc4e6cdaf0804d78363 /wx+/button.h
parent5.12 (diff)
downloadFreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.gz
FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.bz2
FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.zip
5.13
Diffstat (limited to 'wx+/button.h')
-rw-r--r--wx+/button.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/wx+/button.h b/wx+/button.h
index 5a704840..42174a44 100644
--- a/wx+/button.h
+++ b/wx+/button.h
@@ -24,19 +24,25 @@ public:
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
- void setBitmapFront(const wxBitmap& bitmap, size_t spaceAfter = 0); //...and enlarge button if required!
- void setTextLabel( const wxString& text);
- void setBitmapBack( const wxBitmap& bitmap, size_t spaceBefore = 0); //
+ void setBitmapFront(const wxBitmap& bitmap, int spaceAfter = 0); //...and enlarge button if required!
+ void setBitmapBack (const wxBitmap& bitmap, int spaceBefore = 0); //
+
+ void setInnerBorderSize(int sz) { innerBorderSize = sz; refreshButtonLabel(); }
+
+ virtual void SetLabel(const wxString& label);
+
+ void refreshButtonLabel(); //e.g. after font change
private:
wxBitmap createBitmapFromText(const wxString& text);
- void refreshButtonLabel();
wxBitmap bitmapFront;
- unsigned int m_spaceAfter;
- wxString textLabel;
- unsigned int m_spaceBefore;
+ int spaceAfter_;
+ ///wxString textLabel;
+ int spaceBefore_;
wxBitmap bitmapBack;
+
+ int innerBorderSize;
};
//set bitmap label flicker free!
bgstack15