LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Curved fill slide

I want to implement a curved fill slide. The only ones I can find are rectangular and are either vertical or horizontal.

What I want is a progress bar that isn't straight but where I can add a curve.

Has anybody any ideas?
0 Kudos
Message 1 of 7
(6,866 Views)
Offhand, I can think of 2 ways, both not too convenient.
First, you can customize a slide control by placing 2 arch graphics on it, one on the top and one on the bottom, so that only a curved part of the slide will be seen. The arches themselves can be created in any program, from paint to powerpoint, but the problem is that once they're over the control it can only be used as an indicator and that they will have to be painted to fit the background. Also, they can't be resized with the control.
Second, you can use a meter indicator and hide it with something else. Then, you can move the other things gradually to the right, so the meter control becomes visible. Again, not too convenient and it also doesn't allow you to see the entire meter. Personally, I would go with the first one.

___________________
Try to take over the world!
Message 2 of 7
(6,856 Views)
Do you know of a way to rotate the indicator
0 Kudos
Message 3 of 7
(6,846 Views)
Why not use a horizontal one?

___________________
Try to take over the world!
0 Kudos
Message 4 of 7
(6,838 Views)
Hi Ken,

I have been trying to find an easy way to implement a curve fill slide as you requested but there isn't any easy way that I can find, and none of the things I tried looked particularly good either. TST's suggestions are good and valid, but as he asks, is there any particular reason you can't just use a horizontal/vertical slide or possibly a knob turned on its side.

These would both be much easier and quicker ways to get your code up and running.

Best regards,

Peter H.
Applications Engineer.
NIUK.
0 Kudos
Message 5 of 7
(6,822 Views)
Perhaps you need to look at the discussion here.

This discussion contains a nice example of a custom generated slider using the picture control.

http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=14
Message 6 of 7
(6,818 Views)
Conseils has given you the "big hammer answer" that should let you do what you want.

The attached VI uses a guage to give you something that may work. It manipulates the ramp to look like a curved fill.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 7 of 7
(6,795 Views)