LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
acaracciolo

Add access to embedded control decorations.

Status: New

Clusters allow you access to the decorations inside the cluster but you can also drop decorations on a custom .ctl file too but there is not way to programmatically access them.

acaracciolo_0-1691284677389.png

 

7 Comments
wiebe@CARYA
Knight of NI

There's a way, but it's not obvious:

 

wiebeCARYA_1-1691592795981.png

 

 

acaracciolo
Member

@wiebe@CARYA

I guess my post wasn't as clear as I would like.

Make any custom control you want, I used a string. Plop a decoration in the .ctrl file and use in a vi.

Then try to get a reference to that decoration. I don't see how the traverse would find it unless its in the Vi server hierarchy. I've tried tagged objects etc. The decoration refs need to be on the control class like the cluster class is what I was intending to say.

wiebe@CARYA
Knight of NI

That is  a valid request.

 

Note that even though you can resize the decorations, you can't individually select them. As a result, Resize Objects doesn't work on decorations in a control... That could be considered a bug.

 

It's a corner case (not many will run into this), and a fix is probably quite hard to implement. So +1 for me, but I wouldn't wait for a solution.

Taggart
Trusted Enthusiast

Overall I think decorations should be treated as better citizens in LabVIEW.

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Read about my thoughts on Software Development at sasworkshops.com/blog
GCentral
wiebe@CARYA
Knight of NI

>Overall I think decorations should be treated as better citizens in LabVIEW.

 

Yes! We've been complaining about the lack of decoration labels since they added references (LV 5 or 6)?. (Kudo this idea)

 

Then, NI added decoration labels (LV11). So happy...

 

Sadly they don't work. It was actually noted as a bug (in this duplicate idea), not that they don't work, but the fact they are in the properties.

 

12 years later, the (dysfunctional) labels are still there though (haven't checked 23)...

wiebeCARYA_0-1693212036587.png

zou
Trusted Enthusiast
Trusted Enthusiast

What do you want to do with the decoration programmatically ?

Currently, there is work around for show/hide, move, size, color... for control decoration.

 

George Zou
zou
Trusted Enthusiast
Trusted Enthusiast