Discussion:
Custom Progress Bar
(too old to reply)
jmcbee
2008-08-13 22:10:05 UTC
Permalink
I have created a custom horizontal progress bar .ctl.  (an example is attached).  On the left is my company logo and beneath the progress bar is some text.  As the progress bar progresses it slowly covers the text.  I would like for the text to be displayed on top? of the progress bar with white as the text color, as the progress bar moves to the right.  My reason being that the text is part of the company logo and having the progress bar slowly demolish the company logo as it moves to the right just wont do.  I haven't had any good ideas for how to get around this, and it is very possible that a custom progress bar is not the right solution here.  I welcome all suggestions.


Example Progress.ctl:
http://forums.ni.com/ni/attachments/ni/170/349152/1/Example Progress.ctl
Pie56694
2008-08-14 22:40:17 UTC
Permalink
Hi jmcbee,&nbsp;You could place a free label atop the text.&nbsp; The free label would also appear above the progress bar as it scrolls.&nbsp; Aside from that, dare I say..<a href="http://zone.ni.com/reference/en-XX/help/371361E-01/lvconcepts/using_xcontrols_in_vis/" target="_blank">.XControls?</a>
jmcbee
2008-08-15 15:10:05 UTC
Permalink
Thank you for the reply Steve.&nbsp; I considered the XControl as well, but thought I would try picture controls first.&nbsp; I ended up making my own version of the progress bar by overlaying two picture controls (one of the bottom logo, one of the top).&nbsp; I use property nodes to read the height and width of the bottom logo, I wire the height of the bottom logo to the top logo and multiply the width of the bottom logo by the percentage of progress and wire this value to the width of the top logo.&nbsp; After a bit of fine tuning I was able to produce the effect I was going for.
Pie56694
2008-08-15 15:10:07 UTC
Permalink
Well done jmcbee!&nbsp; Thank you for posting the outline of the process.&nbsp; It will help others with similar requirements.
Continue reading on narkive:
Loading...