LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Tark

ALL Properties

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.

When passing a control reference to a sub vi , it would be nice to be able to map ALL properties to the taget control in one hit rather than individually setting each property in turn from the reference.

5 Comments
wiebe@CARYA
Knight of NI

I doubt that. All writeable (I assume) properties include position, and the source (I assume) control's position would not make sense for the destination. So you probably want a selected list of properties to be set, most likely not all properties...

 

In other words, you probably want to set a list of useful properties. You'll need a way to specify what is 'useful' and what's not.

 

What would the proposed source of the properties be? A string, another control or some data structure?

 

This would all be possible (but not trivial) to implement with the available recourses.

Tark
Member

The source of the properties would be another control. I take your point about certain properties (eg position), which would need to be removed from the list.

wiebe@CARYA
Knight of NI

It's possible that the term 'useful' is context dependent. Sometimes copying 'Position' is useful, sometimes it's not. Same for 'Value'.

 

A carefully created VI might be able to do this. I've done this many times for specialized controls, like graphs. Useful when it needs printing. But then, again, some properties like background color are explicitly not copied.

 

I don't think a one size fits all solution is feasible. I think the alternative, although sometimes cumbersome, is already available.

AristosQueue (NI)
NI Employee (retired)

Tark: Are you wanting to make one control match another control programmatically by assigning properties? That's an odd request. Usually, if two controls need to match, that can be solved with a strict typedef so there's no runtime overhead. What's your use case where you have a single control that has to programmatically change to match multiple other controls?

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.