Derive wxStaticText from wxStaticTextBase, remove dead code/code
duplication. Likewise for wxStaticBitmap. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -16,11 +16,7 @@
|
||||
#pragma interface "stattext.h"
|
||||
#endif
|
||||
|
||||
#include "wx/control.h"
|
||||
|
||||
WXDLLEXPORT_DATA(extern const char*) wxStaticTextNameStr;
|
||||
|
||||
class WXDLLEXPORT wxStaticText: public wxControl
|
||||
class WXDLLEXPORT wxStaticText: public wxStaticTextBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
||||
|
||||
@@ -53,12 +49,10 @@ public:
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
virtual void ChangeFont(bool keepOriginalSize = TRUE);
|
||||
virtual void ChangeBackgroundColour();
|
||||
virtual void ChangeForegroundColour();
|
||||
virtual void SetLabel(const wxString& label);
|
||||
|
||||
// Get the widget that corresponds to the label (for font setting, label setting etc.)
|
||||
// Get the widget that corresponds to the label
|
||||
// (for font setting, label setting etc.)
|
||||
virtual WXWidget GetLabelWidget() const
|
||||
{ return m_labelWidget; }
|
||||
|
||||
|
Reference in New Issue
Block a user