NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

resize controls VI - control references

Within the Full OI - Resize Controls.vi, I recently added a container reference used to display the comment associated with the selected sequence file.  Anyway, the way I did this was to copy one of the existing container references and modify it.  I could not figure out how to create a new container reference with the desired properties.
 
I see the icon in the .Net and ActiveX pallette.  When I select the ActiveX Container, I get an empty box.  I tried a right-click and selected 'Insert ActiveX Object', but then I didn't see anything applicable in the list of available servers.
 
So instead I right-clicked the copy of the container reference I made and selected Select VI Server Class -> Generic -> GObject -> Control ActiveX Container.  The "Select Ctrl Type" is set to ActiveX Container.  Then I just changed the label in the properties.
 
How would I create an ActiveX Container otherwise?
0 Kudos
Message 1 of 3
(2,939 Views)
Hey  mrbean,

There are two methods that I was able to find to create a reference to an ActiveX container.  The first one is the one that you discovered by changing the VI Server class.  The easier method in my opinion is to start with a refnum control such as an application refnum or VI refnum, and then drag and drop an ActiveX container into the Refnum control.  This should automatically change it to the correct class.
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,922 Views)
Very cool!  I didn't know you could do that.
0 Kudos
Message 3 of 3
(2,905 Views)