|
|
Home » U++ Library support » Slider&ProgressIndicator » Slider with thermometer like scale
Slider with thermometer like scale [message #27646] |
Tue, 27 July 2010 17:42 |
|
koldo
Messages: 3402 Registered: August 2008
|
Senior Veteran |
|
|
Hello all
Is it planned in short term to mark the slider on its side with gradations like a thermometer scale?
If no, do you have any aesthetic ideas about how to do it?
Did you include it in the same Slider ctrl or you would do a new LengthMarkings class.
Best regards
Iñaki
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Slider with thermometer like scale [message #27835 is a reply to message #27728] |
Fri, 06 August 2010 01:28 |
avpavp
Messages: 19 Registered: September 2009
|
Promising Member |
|
|
Here's my latest SliderCtrl.
I changed the way most of the labels and ticks were handled. Now things are based on Major and Minor ticks.
Major ticks have text labels. If you had a slider going from say, 0 - 200, you might set MajorTicks to 25, which would put larger ticks and text labels at 0, 25, 50, 75 ... 200.
Then you might set MinorTicks to 5, which would put minor ticks (smaller, no text) at 5, 10, 15, 20, 30, 35, ...
Also, you can set the tick sizes for Major and minor, 0 to 100 % of the size of the ctrl from the slider line to the edge.
Finally, you can set the tick location to above/below the line (left and right too).
I'd like to submit this for inclusion in the core once all the kinks are worked out. I gather I should generate the topic++ files or something? I looked around as much as I could, and couldn't really figure out how to do this. If Ultimate++ wants tpp or t++ or topic++ files I humbly suggest you make it a little better known how to create such files...
Thanks,
Anthony
-
Attachment: Slider.zip
(Size: 4.10KB, Downloaded 411 times)
|
|
|
|
Goto Forum:
Current Time: Sun Dec 08 03:42:22 CET 2024
Total time taken to generate the page: 0.03489 seconds
|
|
|