LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Small UI pipes pixel

Solved!
Go to solution

While I can't get smaller than 5 pixels either, I have another idea that might work (and that might actually be thinner than the 5-pixel String Indicator).  Use a Classic Boolean Box Indicator (which, by default, is a 20 by 20 square).  Name it, make the Label "not visible", and (I recommend) create a Property Node and programmatically set the Color, BtnSize, and Position properties.  If you make the Foreground color "transparent", the "pipe size" will decrease by 2 pixels.  In the example here, I've used only one Color, so changing the value of the Boolean won't change the Pipe color, but if you wire in two colors, you could programmatically change the Boolean and have that pipe "blink" to draw attention to itself.

 

This, of course, only draws horizontal and vertical pipes -- to make pipes with bends, you'd have to create an array of these things and adjust size and position appropriately, but all of that could be handled by a clever VI, allowing you to treat the entire Array (which could have a single element if there was just a straight pipe) with settable properties being Position and Color.Pipes.png

 

Bob Schor

0 Kudos
Message 11 of 15
(1,106 Views)
Solution
Accepted by RavensFan

I was about to edit my Reply, but saw that two people had already viewed it, so I'm adding a followup.  It turns out (when I took a picture of it) that my 5-pixel Pipe with a transparent border is actually 3 pixels (the border apparently "counts" in the width).  Furthermore, you can add the "blinking" property (seen in the revised snippet) and get the Indicator to handle "calling attention to itself" for you.  Here is the revised Snippet and the resulting Pipe -- the "blink" variety is Red, with a 1-pixel yellow border (so it is, in fact, 5 pixels).

Pipes.png

 

3-pixel pipe.png

 

Bob Schor

Message 12 of 15
(1,098 Views)

My goal was 2 pixels but 3 is way better than 5.  Good Idea. Thanks.

0 Kudos
Message 13 of 15
(1,087 Views)
0 Kudos
Message 14 of 15
(1,077 Views)

Now thats a cool pipe.  If I go 3D and fancy I know where to go.  Thanks.

0 Kudos
Message 15 of 15
(1,073 Views)