1. wxStaticText, wxStaticBox, wxButton drawing implemented

2. "pseudo dynamic" wxTheme creation
3. hack to solve GetBestSize() problem
4. more methods in wxDC:: GetMultiLineTextExtent(), DrawLabel()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-08-15 20:42:47 +00:00
parent 9df4cddfa8
commit 4d3c4c2f94
38 changed files with 1752 additions and 399 deletions

View File

@@ -13,10 +13,10 @@
#define _WX_UNIV_STATTEXT_H_
#ifdef __GNUG__
#pragma interface "stattext.h"
#pragma interface "univstattext.h"
#endif
class WXDLLEXPORT wxStaticText : wxStaticTextBase
class WXDLLEXPORT wxStaticText : public wxStaticTextBase
{
public:
// usual ctor
@@ -49,12 +49,16 @@ public:
long style = 0,
const wxString &name = wxStaticTextNameStr);
// implementation only from now on
virtual void SetLabel(const wxString& label);
protected:
// calculate the optimal size for the label
virtual wxSize DoGetBestSize() const;
// draw the control
virtual void DoDraw(wxDC& dc, wxRenderer *renderer);
virtual void DoDraw(wxControlRenderer *renderer);
};
#endif // _WX_UNIV_STATTEXT_H_