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) » why not StaticText::SetData != StaticText::SetText
why not StaticText::SetData != StaticText::SetText [message #30016] Fri, 03 December 2010 11:29 Go to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
hi guys

StaticText and Label have empty GetData() / SetData()
and one cant set the text trough them. but it'd be great
is there a reason why?

wo why not mapping GetData / SetData to GetText / SetText
i.e.:

virtual void SetData(const Value& v) { SetText(AsString(v)); }
virtual Value GetData() const { return GetText(); }

note the conversion above, to surely be able to display everyting..

or do StaticText / Label have special implications in terms of Ctrl usage?

i know of DataPusher, which is sort of sth like the same, isn't it?
but for StaticText Label, it'd be really great as well
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [bug report]problem about processing WM_PAINT message
Next Topic: CtrlCore.h const correctnes fixes
Goto Forum:
  


Current Time: Thu Apr 25 14:57:18 CEST 2024

Total time taken to generate the page: 0.01683 seconds