TreeView Control; HitTest method doesn't work

Ken Liesegang

New Member
<div align=""><font size="2" face="Arial" color="#000000"> I have been struggling to get the HITTEST method on the MSCOMCTL.OCX to correctly detect it is over a node, and to return the com-handle of that node to Progress.

My ultimate goal is drag and drop functionality.

Has anyone else succussfully done this? </font></div>

<FONT COLOR="#000000" SIZE="1" FACE="Arial, Verdana">[This message has been edited by Ken Liesegang on 28 March 2000 @ ]</font>
 

figyo

New Member
Try tracking mouse movement with event procedure MouseMove, and then invoking HitTest (with x,y returned by MouseMove).

PROCEDURE [controlframe].[control].MouseMove :
DEFINE INPUT PARAMETER Button AS INTEGER.
DEFINE INPUT PARAMETER Shift AS INTEGER.
DEFINE INPUT PARAMETER x AS INTEGER.
DEFINE INPUT PARAMETER y AS INTEGER.
END PROCEDURE.


---
Figyo

<FONT COLOR="#000000" SIZE="1" FACE="Arial, Verdana">[This message has been edited by figyo on 22 June 2000 @ ]</font>
 
Top