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) » GetProperty() / SetProperty() for Ctrl
Re: GetProperty() / SetProperty() for Ctrl [message #29811 is a reply to message #29808] Thu, 18 November 2010 20:03 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
sorry, the 'test' case was just veeeeery brief Smile to be able to look at the 'api'.. it was just to show that the respective calls to SetData() has arrived successfully..

the api is very simple

bool SetProperty(Ctrl& c, const String& n, const Value& v);
bool GetProperty(const Ctrl&, const String& n, Value& v);

both return false if no property with name n could be found for Ctrl& c. or if in case of SetProperty the Value v had incompatible type..

this is just a very bried first - shot idea, without need of manipulating Ctrl at all but still yielding full support to all top level Ctrls. in this case it is an EditInt beeing passed as Ctrl&, and still can set Min and Max values...so this is a uniform api.

my point is to have a feedback on wheather stuff like that is of use or if there is a more intelligent way to export and access properties of controls in a uniform way other than the pure compile time c++ api, but also as runtime manipulation api..

cheers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drag and Drop between instances [FEATURE REQUEST]
Next Topic: PrinterJob prints blank pages in linux
Goto Forum:
  


Current Time: Wed Apr 24 22:55:11 CEST 2024

Total time taken to generate the page: 0.02561 seconds