ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert slider dynamically into slide control

Hi,
 
I've got a problem with a slide control. I want to realize a step control which can show several milestones.
The space between all these milestones should be coloured to be recognizable within one view.
 
So, I thought, the best solution would be a slide control.
 
BUT:
If you want to add a slider to the control your VI mustn't run. Because this isn't a dynamical property to add a slider.
 
But it's important for my application to visualize this.
 
Is there any other control able to do my task? Or have I to create a XControl?
And if I have to create a XControl how can I implement a new property?
 
I would be thankful for any help and thanks in advance.
 
Greets,
Joe

Message Edited by PatchProgram on 04-25-2006 07:35 AM

0 Kudos
Message 1 of 7
(5,180 Views)
SImply add as many sliders as you will possibly need, then you can hide the unused ones during runtime using property nodes.
Message 2 of 7
(5,170 Views)

This is exactly what I want to do.

I have a pointer slide and I want to add or remove a pair of sliders by clicking a add- or remove-button.

 

I placed the slide on the front panel, added several sliders to this slide and created a property node of the slide. Now I don't find a property to make one slider invisible. I can only make the whole slide invisible.... 😞

 

How can I make a slider (not the slide) invisible?

Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 3 of 7
(4,871 Views)

You can change the fill color to be transparent.

0 Kudos
Message 4 of 7
(4,860 Views)

I stil have no clue...

Doesn't refer the fill colour property to all sliders?

What color number is transparent?

 

Attached some pictures:

1. a clueless try

2. the slider properties

3. the slider

 

No clue what to do

 

 

Slider_Property.PNG

 Slider.PNG

Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 5 of 7
(4,848 Views)

The value for transparent is 16777216. In LabVIEW 8.2 I have the "color box constant" for this value.

 

Regards, Vt133

 

0 Kudos
Message 6 of 7
(4,834 Views)

 


johanneshoer wrote:

Doesn't refer the fill colour property to all sliders?

What color number is transparent?


 

To change the color of a particular slider, use a property node with two entries:

 

  1. active slider
  2. Slider color
For example, to change the second slider:
Wire the desired slider index to (1) and the desired color to (2). Use a colorbox diagram constant and select transparent.
(Also, feel free to support my related idea to simplify all this :))

 

 

Message 7 of 7
(4,827 Views)