projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed broken 'hidden categories' mode (aka. alphabetic mode); Added distinct names...
[wxWidgets.git]
/
include
/
wx
/
msw
/
stattext.h
diff --git
a/include/wx/msw/stattext.h
b/include/wx/msw/stattext.h
index c42f65552c131fc9d6205516cb596bdd9d50952a..28e1b79656250d3606ec396cc0a3390f58ce04f1 100644
(file)
--- a/
include/wx/msw/stattext.h
+++ b/
include/wx/msw/stattext.h
@@
-12,11
+12,7
@@
#ifndef _WX_STATTEXT_H_
#define _WX_STATTEXT_H_
#ifndef _WX_STATTEXT_H_
#define _WX_STATTEXT_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "stattext.h"
-#endif
-
-class WXDLLEXPORT wxStaticText : public wxStaticTextBase
+class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
{
public:
wxStaticText() { }
{
public:
wxStaticText() { }
@@
-40,13
+36,20
@@
public:
long style = 0,
const wxString& name = wxStaticTextNameStr);
long style = 0,
const wxString& name = wxStaticTextNameStr);
+ // override some methods to resize the window properly
+ virtual void SetLabel(const wxString& label);
+ virtual bool SetFont( const wxFont &font );
+
+ virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const;
+
protected:
// implement/override some base class virtuals
protected:
// implement/override some base class virtuals
- virtual wxBorder GetDefaultBorder() const;
virtual void DoSetSize(int x, int y, int w, int h,
int sizeFlags = wxSIZE_AUTO);
virtual wxSize DoGetBestSize() const;
virtual void DoSetSize(int x, int y, int w, int h,
int sizeFlags = wxSIZE_AUTO);
virtual wxSize DoGetBestSize() const;
- virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const;
+
+ virtual wxString DoGetLabel() const;
+ virtual void DoSetLabel(const wxString& str);
DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
};
DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
};