LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Decorations - Draw a straight vertical line??

LV 6.1

I want to add a vertical chiselled line to my front panel. When the lines is dropped, it's at 45°, but for the life of me I can't get the ****** thing to go exactly vertical or horizontal.

Is there a trick to this?

Cheers

Joolz
0 Kudos
Message 1 of 8
(3,905 Views)
Yes, it is a pain that the decorations are initially at 45 degree angles. You can lock the rezizing to horizontal and verticle, by holding the shift key while you drag, but this doesn't help unless the the line is already horizontal or verticle. I suggest making the like very wide/tall and then attempting to get it 'Perfect'. Then, make it narrower/shorter while holding shift down to lock the motion of the mouse.
0 Kudos
Message 2 of 8
(3,905 Views)
I tried this - it worked horizontally but not vertically.

The easiest thing seems to be to use a very thin rectangle...

Thanks for replying

Joolz
0 Kudos
Message 3 of 8
(3,905 Views)
I just grab a resize anchor and then watch the size 'tool tip' until the x or y goes to zero. This lets me know how much 'nudge' I need to put on the mouse to get a perfect horizontal or vertical. If it keeps jumping around zero, say from -2 to 2, I know it time to clean the mouse.
0 Kudos
Message 4 of 8
(3,905 Views)
Sorry, I don't have a good solution except what has been mentioned, except upgrading to 7.0.

The new alignement grid makes all these (and similar) issues disappear completely. Great feature!
0 Kudos
Message 5 of 8
(3,905 Views)
Doesn't this just drive you nuts!

Slowing down the mosue works for me, but I have to slow it WAY down.

Another aproach is to through together a quick hack like the attached VI that writes to the size property of the decoration.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 8
(3,905 Views)
Thank you all for your help.

Cheers

Joolz
0 Kudos
Message 7 of 8
(3,905 Views)
Actually, I had to turn OFF the alignment grid. When making a straight vertical (horizontal was ok) line, it would toggle back and forth around 0, but never let me get to zero.

A modifier that turns off the grid (like pressing the control button while dragging, or whatever) would be nice! NI? 🙂

A more laborious solution is to use a sequence of property nodes to access the attributes. The decoration references are returned in an array indexed in front-to-back order. But, at least you can control them now programmatically for more esoteric effects.
Certified LabVIEW Associate Developer
0 Kudos
Message 8 of 8
(3,905 Views)