U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Slider&ProgressIndicator » ProgressIndicater: Get / SetData missing?
Re: ProgressIndicater: Get / SetData missing? [message #29334 is a reply to message #28864] Fri, 15 October 2010 14:49 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
kohait00 wrote on Mon, 20 September 2010 10:08

hi all

ProgressIndicater (like some other controls) appear to have the default GetData / SetData interface beeing missing.. is this by design? it would ease things on common handling in a Ctrl based factory lot.. by not needing to sace extra info, just invoke GetDa
ta/SetData known interface..

just add
Progress.h:27
	int   Get() const                           { return actual; }

	void   SetData(const Value& v)              { Set(v); }
	Value  GetData() const                      { return Get(); }



Not quite sure it is completely right:

ProgressIndicator is kind of static value - user cannot change it. So far the policy was that only widgets that are editable have Value.

The reason is that if you want to store all user supplied values in the dialog, you can simply go through all widgets and store the value if it is not Value::Void - that indicates that the widget does not have associated value.


 
Read Message
Read Message
Read Message
Previous Topic: Slider Vert - from bottom (min) to top (max)
Next Topic: Slider with thermometer like scale
Goto Forum:
  


Current Time: Wed Jul 22 19:18:34 GMT+2 2026

Total time taken to generate the page: 0.00504 seconds