LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to display user defined class properties as a hierarchy

Solved!
Go to solution

So I drop down a property node and right click to see a list of all possible properties.  They are nicely organized in groups and subgroups etc..

 

Is it possible to do the same for properties I define for a class?  Let's say I have 20 properties to access data members.  Some of them are related to each other in some way so I want to group them on the property drop down menu.

 

Properties.png

Randall Pursley
0 Kudos
Message 1 of 8
(3,826 Views)
Solution
Accepted by topic author rpursley8
I have never tried this, but try giving the properties names like "group 1:property 1", and "group 1:property 2". LabVIEW uses that sort of syntax in several other places...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 8
(3,795 Views)
The smiley faces should be a colon followed by a "p".

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 8
(3,787 Views)

Mike's suggestion of using the colon should work. I don't remember the details, but look at the help page for the class properties dialog where you can specify the long/short/localized name. It should be there.


___________________
Try to take over the world!
Message 4 of 8
(3,768 Views)

That seems to work.  The colon part.  The p is not needed

Randall Pursley
0 Kudos
Message 5 of 8
(3,743 Views)
The p was only because in my example the names were to be "property 1" and "property 2". The bigger point is that LabVIEW tends to do things in the same way in many places. Colons are used to create hierarchical menus in XControls and polymorphic VI names, so I figured give it a try -- it might work here too.

Over the years I have discovered a bunch on neat features in this way.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 8
(3,715 Views)

Should this still work?

 

I've just tried it in 2017 SP1, but it won't let me use colons in the property folder name.

E.g.

 

Group:Property
Foo:Bar

 

2018-04-09_16-03-55.gif

 



Using LV2018 32 bit

Highly recommended open source screen capture software (useful for bug reports).

https://getsharex.com/
0 Kudos
Message 7 of 8
(2,944 Views)

Aha, it's the Localized Long Name that needs to be modified, not the actual Property folder in the Project Folder:

2018-04-10_10-55-10.png

 

ResultResult



Using LV2018 32 bit

Highly recommended open source screen capture software (useful for bug reports).

https://getsharex.com/
Message 8 of 8
(2,931 Views)