LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How come a locked decoration doesn't show up in the VI.Panel.Decorations[ ] property but a locked control shows up in the VI.Panel.Controls[ ] property?

This seems like an oversight. Granted, I shouldn't be able to write to size and position properties of a locked decoration, but I would really like to read this information.

-Jim
0 Kudos
Message 1 of 5
(2,664 Views)
National Instruments is aware of this oversight.

A possible workaround is to either unlock the decorations or obtain references to all front panel objects and then remove the controls references. This will leave only the references to the decorations.

Marc
0 Kudos
Message 2 of 5
(2,664 Views)
Patient: Help me, doctor. It hurts when I do 'this'
Doctor: Don't do that

OK, but seriously, Regarding workaround No. 2. I tried to use the VI.Panel.AllObjects[] property but the refnum of all decorations are invalid and I get Error 1055 (Object reference is invalid) when I try to operate on it. I am running LV 6.0.2. Attached is an example with the values after running it on my PC saved as defaults.

-Jim
0 Kudos
Message 3 of 5
(2,664 Views)
Well isn't that annoying. I'll let our R&D department know of this issue. The workaround helped in another case where I had a similiar issue with grouped decorations. Sorry to have led you astray. I'll see if I can find a possible workaround.

Marc
0 Kudos
Message 4 of 5
(2,664 Views)
Thanks, Jeff. Could you email me when this is solved?

-Jim
0 Kudos
Message 5 of 5
(2,664 Views)