diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:23:19 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:23:19 +0200 |
commit | 0887aee8c54d0ed51bb2031431e2bcdafebb4c6e (patch) | |
tree | 69537ceb9787bb25ac363cc4e6cdaf0804d78363 /wx+/button.h | |
parent | 5.12 (diff) | |
download | FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.gz FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.bz2 FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.zip |
5.13
Diffstat (limited to 'wx+/button.h')
-rw-r--r-- | wx+/button.h | 20 |
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! |