> I am wanting to use a horizontal pointer type indicator but with a 
> background color ramp like is available on the meter controls.  The 
> "Scale.RampVis" property does not appear to be available for a slide 
> like it is for a meter.  Has anyone created a custom control like this 
> that they can share?  Or can anyone give some pointers on how it can be 
> done?
> 

The Color scale is a specific part added to the controls by NI.  If they 
aren't on the control when dropped from the palette, they can't be shown 
or added.  You can graphically combine controls just by layering them.  
The color scale is also available on the color ramp and on the intensity 
graph.  You could place one of these on the panel and place the slider 
over, do a bit of coloring transparent, and you are good to go.  
Unfortunately, I believe that all the color scales that ship are 
vertical.  I'm sure they'd work horizontal, but nobody ever requested 
their Z scale on the intensity graph show horizontally.  So if you can 
switch to a horizontal scale that allows the combination to work.

Another solution is to use a graphic of the color ramp.  Using either 
the color ramp control or intensity graph or another paint package, 
build the ramp you want to use, copy it to the clipboard or save the 
image to file, then load and paste either on the panel, or import into 
the slider in the control editor.  This will work fine as long as you 
don't want to programmatically change the colors or size of the scale.

If you do want to change the colors, consider placing the slider over an 
intensity graph showing the gradient.  You set the scale colors or 
generate a new ramp for the intensity graph, and as far as the user 
sees, it is a part of the scale.  You could also use the picture control 
for this.

Sorry the workarounds are so involved.  You might also want to file a 
formal request for having color scales on sliders, etc.

Greg McKaskle


Reply via email to