LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

visible property from text decorations

Greetings,

 

So I have a Custom Control type definition. I put several of these typedefs into a cluster and then make visible certain parts of them depending on options elsewhere in the program. The type definition contains a cluster of controls and decorations (labels). Originally, I had some code that pulled out references for all the decorations and set some to visible and other to invisible depending on some information. This worked I think back in LV2013. Now, something has happened in LV2015. Right click on the different labels. If you right click on "Starting at" and "running to" you get different options than if you right click "with", "steps" or "increment".

 

As best I can tell (by looking at the Class ID and owner through the reference), these decorations are all the same. But somehow they are different. Importantly, I can't change the visible tag of with, increment and step but I can for "Starting at" and "and running to". At one point, I could! Also interesting, if I copy the decoration outside the cluster, the right click menu changes but if you copy inside the cluster, it stay the same. I dunno. I'm trying to understand what the differences are here.

 

More specifics: if I try to change the visibility of "with", etc, I get error 1186:

 

 Cannot show or hide the label on its own. Label visibility is controlled by the label owner.

 

However, if you look at the owner for all the decorations, it's all the same.

 

I suppose there are work arounds for this like possibly using a string control or something. But I'm more interested in what is causing this issue in the first place (also, I was handling the controls and decorations seperately before so it's just a pain that I've lost some control here).

 

Thanks.

0 Kudos
Message 1 of 6
(4,355 Views)

majoris,

 

Perhaps you could explain the problem a little more or post some screenshots that show what you are refering to. I seem to be able to hide any of the controls, but only if I click on the cluster, not the actual control.

Alex W.
0 Kudos
Message 2 of 6
(4,296 Views)

I'm not talking about the cluster or control, I'm talking about the text decorations. I'll whip up a sample VI shortly.

0 Kudos
Message 3 of 6
(4,284 Views)

I have seen similar issues before, for whatever reason those labels are not properly upgraded to LV15, you will notice that when you right-click the 'bad' ones there is no option to Enable Hyperlinks.  The fix is to simply select the bad labels, Ctrl-X,Ctrl-V to simply cut and repaste.  Then everything should work fine.

 

Sometimes I like to poke around and find deeper issues behind a bug, sometimes I like to fix it and move on.  In this case I'd go with the fix and move on route.

0 Kudos
Message 4 of 6
(4,264 Views)

Thanks Darin. I actually tried that and it didn't seem to work for me but I'll look at it again. Attached is a demo of the issue. Use the boolean controls in the array to control visibility. Notice that for the three on the left, trying to revisible them will throw an error. The two on the right work fine. I have no clue what is happening and how they are different. They have the same owner and type. Making new decorations in this control are the bad kind that don't go visible. Crazy stuff.

Download All
0 Kudos
Message 5 of 6
(4,255 Views)

I actually did the fix on an instance of the TypeDef instead of the TypeDef itself.  To fix the TypeDef you should do the same Cut-Paste operation, change to Strict Type Def, apply Changes, then switch back to Type Def.  Worked for me.

0 Kudos
Message 6 of 6
(4,244 Views)