Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
omari is currently offline  omari
Messages: 266
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

 
Read Message
Read Message
Read Message
Previous Topic: RegExp: newlines in replacement string
Next Topic: draganddrop does not work
Goto Forum:
  


Current Time: Sat May 25 19:11:21 CEST 2024

Total time taken to generate the page: 0.00672 seconds