I'm playing about with using treeviews in Labview via ActiveX. I can
populate them to as many levels as I want, add icons, have them expand and
contract and use the ActiveX events to tell when nodes are
clicked/expanded/contracted etc. However I'm at a loss as to how to drag
nodes about. I've set OLEDragMode to Automatic and OLEDropMode to Manual (as
opposed to "none") and I can click on icons and drag them. However no
ActiveX events appear to be generated when I do this and there appear to be
no properties or methods of any of the objects that help. Needless to say,
the control itself doesn't seem to automatically handle the re-arrangement.
I've found the "HitTest" method of the TreeView object, but that appears to
be designed on the assumption it will be used
in a callback function in a
C++ program, and that Windows will supply the current X and Y coordinates to
this function of the icon being dragged- clearly not a great deal of use
here.
Has anyone managed to get full control of the TreeView control within
Labview or am I going to have to accept that I don't have drag+drop?
--
Craig Graham
Physicist/Labview Programmer
Lancaster University, UK