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

Home » U++ Library support » Slider&amp;ProgressIndicator » Slider Vert - from bottom (min) to top (max)
Slider Vert - from bottom (min) to top (max) Fri, 21 November 2008 23:54
 sapiency Messages: 56Registered: September 2008 Member
Hi,

I just tried to use a vertical Slider, but cannot find a solution to switch the min/max - Position.

I want that the Slider and the Progressbar show the same level, but starting from the bottom not from the top. Without changes the minimum starts on top and the maximum is at the bottom of the Slider.

Is there a solution for this idea?

regards

reinhard
Re: Slider Vert - from bottom (min) to top (max) [message #19251 is a reply to message #19230] Sun, 23 November 2008 10:48
 mirek Messages: 12941Registered: November 2005 Ultimate Member
 sapiency wrote on Fri, 21 November 2008 17:54 Hi, I just tried to use a vertical Slider, but cannot find a solution to switch the min/max - Position. I want that the Slider and the Progressbar show the same level, but starting from the bottom not from the top. Without changes the minimum starts on top and the maximum is at the bottom of the Slider. Is there a solution for this idea? regards reinhard

What about switching the values you get? I mean, using (max - ~slider)?

Mirek
Re: Slider Vert - from bottom (min) to top (max) [message #19269 is a reply to message #19251] Sun, 23 November 2008 21:30
 sapiency Messages: 56Registered: September 2008 Member
thanks,

in my case: max - slider - min

but I have to get the value of the slider first to an integer, otherwise I get an error ...

"ambiguous overload of 'operator-' in ...

candidates are:
operator-(int,double)
operator-(int,int)
operator-(int,Upp::int64)

regards

reinhard
Re: Slider Vert - from bottom (min) to top (max) [message #19370 is a reply to message #19269] Sat, 29 November 2008 13:15
 mirek Messages: 12941Registered: November 2005 Ultimate Member
 sapiency wrote on Sun, 23 November 2008 15:30 thanks, in my case: max - slider - min but I have to get the value of the slider first to an integer, otherwise I get an error ... "ambiguous overload of 'operator-' in ... candidates are: operator-(int,double) operator-(int,int) operator-(int,Upp::int64) regards reinhard

You can us cast "(int)slider".

Mirek
 Previous Topic: SliderCtrl [BUG] Next Topic: ProgressIndicater: Get / SetData missing?
Goto Forum:

Current Time: Tue Nov 24 19:01:38 CET 2020

Total time taken to generate the page: 0.00764 seconds