Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HitTest method in Microsoft TreeView ActiveX control
Message
 
To
09/05/1997 08:11:05
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00031436
Message ID:
00031526
Views:
60
>>I'm trying to find the Node under the mouse cursor using the hittest function of the tree activeX control. For some reason the function always returns .NULL. or blank value. Does anyone know of a solution to this?
>>
>>TIA,
>>Peter
>
>Hi Peter,
>
>That seems to be a real bug (and I wonder if it has been solved in Vfp 5.0a... By the way, is that the version you're using? )
>
>When I was trying to use the HitTest function, my intention was provide Drag&Drop operation between Nodes within the Treeview. The only way I've found to do that (without HitTest) was setting the Node that should be moved with the left button, and "droping" it into the target Node with the Right button.
>
>It works fine, but I'd rather use a traditional Drag&Drop operation...
>

Yep, thats exactly what I intend to use drag and drop for. MS KB documents the bug where the Hittest routine returns an empty string instead of the defined NULL value, but it says nothing about this bug. The problem might be complicated by the fact that there are several versions of COMCTL32.OCX and each one seems to have different bugs (for example Image lists do weird things in a certain version).

I am using VFP 5.0a for this project. I might try VFP 3.0 and see if the same problem is present. The problem is that win32 is out of the question because I need it to return an actual NODE object and the ComCtrl32.dll hittest returns a node handle (which I don't know how to convert to an object). If anyone knows how to convert a Node handle to a node object let me know.

Anybody else seen this problem? and possibly know a work around?

Peter
Peter Stephens
Visual Records, Inc.

Lead Programmer for the general purpose record keeping system Visual Records. Written primarily in VFP 6.0 with a little C++.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform