10-17-2022 09:31 AM
It's easy enough to create a Refnum control for a strictly typed cluster control.
I want to create one for a strictly typed cluster constant.
Is that even possible?
10-17-2022 09:59 AM
Yes. It's possible.
Just enumerate all objects on the diagram, and find the one with classname as clusterconstant.
10-17-2022 10:23 AM
but ... why?
10-17-2022 10:56 AM
@zou wrote:
Yes. It's possible.
Just enumerate all objects on the diagram, and find the one with classname as clusterconstant.
That's not even close to what I asked for. I want to set the server class of a refnum control to a strictly typedef'd cluster constant.
10-17-2022 10:57 AM
@Yamaeda wrote:
but ... why?
For the "Affected Items" typedef for a custom shortcut menu.
10-17-2022 11:39 AM
Not sure what you mean.
Are your try to something like this:
Could you should us your code?
10-17-2022 11:56 AM
@zou wrote:
Not sure what you mean.
Are your try to something like this:
Could you should us your code?
Are you only reading every 5th word that I write?
I want a Refnum Control to have a VI Server Class of a strict cluster type.
10-17-2022 12:10 PM - edited 10-17-2022 12:18 PM
It might not be possible, since having a strictly typed constant is only enabled by a special flag (which I believe you are intimately aware of). I don't believe you can even make a reference for ANY kind of BD constant.
But I guess that's why you're asking, because you know all of this and you want to see if anyone has some kind of undocumented way to make this happen.
Edit: What is to be gained by using a BD constant ref instead of a control ref? I don't see any practical reason why a control couldn't be substituted for a BD constant.
10-17-2022 12:11 PM
@paul_cardinale wrote:
@zou wrote:
Not sure what you mean.
Are your try to something like this:
Could you should us your code?
Are you only reading every 5th word that I write?
I want a Refnum Control to have a VI Server Class of a strict cluster type.
I think you need to give zou a break, as this user is usually spot on with their answer when they chime in.
10-17-2022 12:26 PM
@billko wrote:
It might not be possible, since having a strictly typed constant is only enabled by a special flag (which I believe you are intimately aware of). I don't believe you can even make a reference for ANY kind of BD constant.
But I guess that's why you're asking, because you know all of this and you want to see if anyone has some kind of undocumented way to make this happen.
Edit: What is to be gained by using a BD constant ref instead of a control ref? I don't see any practical reason why a control couldn't be substituted for a BD constant.
You can make a reference to a BD constant:
But I want the reference to be for a specific type of cluster, not a generic cluster.
I want this for the "Affected Items" typedef for a custom shortcut menu.