Home » U++ Library support » U++ Library : Other (not classified elsewhere) » StaticText : Add missing GetData/SetData overloads
StaticText : Add missing GetData/SetData overloads [message #49696] |
Thu, 05 April 2018 11:45 |
omari
Messages: 264 Registered: March 2010
|
Experienced Member |
|
|
class StaticText : public Ctrl, public LabelBase {
public:
virtual void Paint(Draw& w);
virtual Size GetMinSize() const;
virtual void LabelUpdate();
virtual void SetData(const Value& v) { SetText((String)v);} // <<---
virtual Value GetData() const { return GetText();} // <<---
public:
StaticText& SetFont(Font font) { LabelBase::SetFont(font); return *this; }
StaticText& SetInk(Color color) { LabelBase::SetInk(color); return *this; }
StaticText& SetAlign(int align) { LabelBase::SetAlign(align); return *this; }
StaticText& SetImage(const Image& img, int spc = 0) { LabelBase::SetImage(img, spc); return *this; }
StaticText& SetText(const char *text) { LabelBase::SetText(text); return *this; }
StaticText& operator=(const char *s) { SetText(s); return *this; }
StaticText();
};
regards
omari.
[Updated on: Mon, 04 March 2019 15:56] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Thu Apr 18 15:01:25 CEST 2024
Total time taken to generate the page: 0.01382 seconds
|