LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX Problems

I am trying to build an application using a treeview structure. The ActiveX i am using is Microsoft's Treeview Control which is contained in mscomctl.ocx file. My problem is that after inserting the control in my .uir file i want to add nodes to the treeview programmatically (and dynamically). I created the ActiveX controller and got or the library functions but no matter what i tried i keep on getting unknown errors and of course there is no node added to my treeview.. I was wondering whether someone tried that and if there is any example code or step by step instructions on how to do it.Thank you.
0 Kudos
Message 1 of 2
(2,840 Views)
Yes, there is an example that uses this control that ships with CVI under /samples/apps/fpeditor. The sample demonstrates how you can automate the CVI environment to build FP files programmatically. It should show you how you can use the treeview ActiveX control from Microsoft. Also, LabWindows/CVI 7.0 now comes with a native tree control that provides a lot more functionality than the ActiveX tree control from Microsoft and is much easier to program. So, you may want to upgrade to CVI 7.0 at http://www.ni.com/upgrade.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,840 Views)