LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xcontrol property separators

Has anyone figured out how to insert non-functional separators into an xcontrol property list?  Hyphens -, cause the separator to show up, but when expanding the property node (by dragging down) the "dummy" property, whos localized long name has the hyphen in it, still shows up, even though it can't be selected from the list.

 

 

As an added note, I discovered that leading spaces in the long name seem to get trimmed in the display, but can be used to shift the order of property displays.

Message 1 of 5
(3,492 Views)

Hello JimboH,

 

Which version of LabVIEW are you working with? Could you provide a screen shot of your project tree to demonstrate what you are seeing?


Thanks!

Andy Chang
National Instruments
0 Kudos
Message 2 of 5
(3,452 Views)

Thanks.  Found it works with Class properties as well.  You have to create dummy Property Definition Folders and property VIs to do it though.

Quentin "Q" Alldredge

Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner



0 Kudos
Message 3 of 5
(3,046 Views)

I would suggest you consider not doing this. In principle, the separators mark where properties from different classes (different levels in the inheritence tree) come from. If you add fake ones, people who know this might think you have more layers in your hierarchy than you actually have. This isn't necessarily bad, but it is a point to consider.

 

If you have too many properties, you might consider putting them in nested menus (which I believe you can do by adding a colon to one of the name properties of the method in the class properties dialog).


___________________
Try to take over the world!
0 Kudos
Message 4 of 5
(3,043 Views)
True. I wouldn't do it normally because of what was stated about inheritance and class hierarchy.

Where I needed it was when I have properties for the whole cluster and the individual elements of the cluster. I group them in a nested menu with "All Elements" (the whole cluster) on the top. Then I put in one of these seperators and finally the individual elements. It shows this way in the properties that are accessed through the VI Server.
Quentin "Q" Alldredge

Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner



0 Kudos
Message 5 of 5
(2,998 Views)