LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can't resize line

Hi everybody,

  Kind of an unusual question.  I created a new custom control, and put in a strict typedef I had created.  I then tried to create a thick line decoration, and found I was unable to change its size or orientation by clicking and dragging.  It looks like as soon as the typedef showed up, the line was associated with it (click on one, and both are highlighted), and couldn't be altered.  I don't know if this is expected behavior or not.

 

Also, with additional testing, one of my typedefs does not cause this effect.  It's a boolean control with custom graphics, and it's the only typedef I have that doesn't restrict the decorations.  I have attached an example with another boolean typedef that does cause this condition for me.

 

edit - Also, the order in which they are put in the custom control doesn't matter, and it doesn't matter if they're both inside a cluster or separate on the control.

Message Edited by JeffOverton on 08-25-2008 02:34 PM
Message 1 of 5
(3,003 Views)
I do see what you mention; not being able to rezise or the thick line decoration in the custom control. I also see an error saying that a Type Definition cannot be used in a custom control unless it is inside another control such as an array or a cluster. This means that you cannot simply place a type def in a custom control.
Eli S.
National Instruments
Applications Engineer
Message 2 of 5
(2,965 Views)

Just a heads up:

 

I stopped messing around with it in order to find a workaround, but I'm pretty sure it happens for more than just the thick line.  I also ran into that problem with the thin line, so I don't know what the scope of the situation might be.

Message 3 of 5
(2,949 Views)

Hi,

 

Like I mentioned before, the scope of this is that you cannot place a type def inside a custom control. You can create arrays or clusters of type defs inside a custom control.

Eli S.
National Instruments
Applications Engineer
Message 4 of 5
(2,931 Views)
Oh, ok.  Thanks Eli
0 Kudos
Message 5 of 5
(2,928 Views)