05-23-2025 04:57 PM
Hello,
I'm trying to find a way to programmatically wrap some ActiveX event registration... using VI scripting.
I'm stuck with a generic GrowableFunction (Generic » GObject » Node » GrowableFunction » GrowableFunction). When just getting AllObjs[] from Diagram, this is the type of reference I get for an already existing Register Evetn Callback node on the diagram. I didn't find a way to use this (I guess) too generic level to select a event to register.
The REG_EVT_CLLBCK.vi diagram looks like this:
I've seen that under GrowableFunction, you can find ObjectFunction and then Contructor, Property, Invoke.
Using theses Property and Invoke class, I'm able to select a property or a method of a already existing node using sripting (you need to allow alternate names).
But I do not manage to get an enought specific class in VI server for the Register Event Callback node.
Is there a trick to select the event to register using VI scripting ?
Or did I reach a kind of dead end ?
Thanks in advance for your help.
05-23-2025 09:38 PM
"GrowableFunction" objects have a "Style" property. In this case, the style is "Register Event Callback".
My guess is that other particulars are stored in tags of the object; but I couldn't find them.
05-24-2025 11:12 AM
My other guess is that it's an unexposed property.
An example of that is the bezel color on classic controls.
You can change the color with the "Set Color" tool, but it's not accessible programmatically; not even with this:
(I know, I tried all 4,294,967,295 index values.)