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 » Slider&ProgressIndicator » Slider Vert - from bottom (min) to top (max)
Slider Vert - from bottom (min) to top (max) [message #19230] Fri, 21 November 2008 23:54 Go to next message
sapiency is currently offline  sapiency
Messages: 56
Registered: 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 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12957
Registered: 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 Go to previous messageGo to next message
sapiency is currently offline  sapiency
Messages: 56
Registered: 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 Go to previous message
mirek is currently offline  mirek
Messages: 12957
Registered: 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: Mon Nov 30 12:00:46 CET 2020

Total time taken to generate the page: 0.00831 seconds