LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Double click event in the Tree Active-X control

Hi,

I know that the Tree control in LabVIEW control palette has Double click event but the same event is not available for TreeView Active-X control. Is it possible to create the Double click event by any other way?

Kindly revert if you have any idea.
Thanks,
Ramkumar.D
QuEST, INDIA.
0 Kudos
Message 1 of 4
(3,195 Views)
Ramkumar,
I understand that you want to preform some action off of a double click event for a TreeView control in an ActiveX container. What do you hope to accomplish with the double click event? Are you trying to open an program/file from a tree? If we know your end goal, there may be an easy solution.
 
Best Regards,
 
Chris C
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(3,175 Views)
Thanks Chris for your reply.
 
Actually I need to open a new window on double clicking the tag in the TreeView active-x control. In that new window user can do someother function. Is it possible to do that?
 
If yes, kindly explain how it can be done.
 
 
Thanks,
Ramkumar.D
QuEST, INDIA.
0 Kudos
Message 3 of 4
(3,168 Views)
You could do what Windows does if you can get more information on the single click event (if you have one).  On a single click event check previous click history for a double click match.  Save the X and Y coordinates and a rough idea of the time on each click.  When a new click comes in check the delta X and Y and if within say 2 pixels also check the time delta and if within a set limit (25ms?) this is now a double click.  Otherwise this is single click and when done save new data to next click iteration (probably through a shift register)...
0 Kudos
Message 4 of 4
(3,156 Views)