05-04-2017 10:01 AM
Hi. I just start to learn labview classes. And I have some questions:
chan.name.font.color
chan.name.font.bold
chan.number
Parameter of class Parameters
Thank you forward.
05-04-2017 02:32 PM
@0Forest0 wrote:
Hi. I just start to learn labview classes. And I have some questions:
- How to make a subProperty in class property definition folder? Like this:
chan.name.font.color
chan.name.font.bold
chan.number
- What is diferent with dinamic and static accessors?
- And how to create object of some class?
Parameter of class Parameters
Thank you forward.
You should really go through the tutorials for LabVIEW Classes (the help manual is actually quite good here in my opinion). But to answer your questions:
05-04-2017 03:02 PM
A slight caveat to tyk007's answer about sub-properties. If by sub-properties you mean a sub-menu like appearance in the property node when calling the property, you can do that by right-clicking the class in the project manager and selecting properties, then in the properties window select Item-Settings and in the Contents tree-menu select the correct property folder and change the Long Name of the folder to something like 'chan:name:font:color' for the color property. Each ':' in the name will translate into a sub-menu arrow.
08-07-2017 08:46 PM - edited 08-07-2017 08:47 PM
08-08-2017 03:03 PM
This forum post is asking about a similar thing and has a good explanation:
http://forums.ni.com/t5/LabVIEW/lvclass-property-node-sub-menu/td-p/3242862
And it links to the following help document, which shows how to make the sub-menus.
http://zone.ni.com/reference/en-XX/help/371361M-01/lvdialog/c_item_lib_page/
08-08-2017 03:30 PM
Creating subProperties is possible; but the process is ugly.
chan.name.font.color
chan.name.font.bold
chan.number
chan:name:font:color
chan:name:font:bold
chan:number