LabVIEW Idea Exchange

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

Add to private data directly from the right click menu

Status: New

Hi,

 

I think it would be nice to have this function on LabVIEW when using lvclass.

 

 

carloandreslpz_0-1650651726106.png

 

By this way would be easy to add new elements to the class private data.

 

Regards.

6 Comments
Petru_Tarabuta
Member

+1. Presumably a dialogue would popup immediately after pressing "Add to private data" to enable the user to choose which class to add the data field to. Otherwise how does LabVIEW know which class to add the field to?

thols
Active Participant

 "how does LabVIEW know which class to add the field to?"

By the VI the item is added from. If that VI is in a class, the menu-item would be available.

Certified LabVIEW Architect
wiebe@CARYA
Knight of NI

+1, seems like I'd use it.

 

For now, this could be added as a right click shortcut menu...

 

For constants and control terminals I'd prefer "Make Private Data", similar to (and just below) "Make Type Def":

wiebeCARYA_0-1650875563010.png

 

Petru_Tarabuta
Member

"By the VI the item is added from. If that VI is in a class, the menu-item would be available."

That makes sense, but wasn't obvious to me from the original post.

kosist90
Active Participant

+1. Could be done by custom shortcut menu plugin, and then distributed as toolkit.

BertMcMahan
Active Participant

I'd also like to be able to add a reference of this type to the menu, or at least be able to right click not just a control but a reference to a control as well. That comes up a lot in my GUI's that need a handful of references to front panel objects for GUI control within class methods.

 

Edit: Might as well add a quick-drop shortcut I found that does some of this:

 

http://www.labviewcraftsmen.com/blog/merry-script-mas