>Thanks for your answer !
>
>well, I'm still using version 5.00.3828 (february 28, 1997) as this was the newest thing I found on the MSDN (look for article Q167121).
>
>If I use HitTest it keeps returning an empty string ?!
>
>Further questions:
>
>1) Do you use Fox6 ???
>
>2) Can you use the TreeCtrl properties sheet to set things like fonts, mouse_icons, and ImageList ??? (I was able to do it, but with an older version ;-) seems that this stuff is not as backward compatible as it should be...)
>
>3) Does CreateDragImage work ?
I finally got my HitTest to work. (Thanks again, Renato!) SYS(2333,0) was the answer to my problem.
For HitTest, you have to convert the mouse coordinates from pixels to twips.
HitTest also returns an object reference for the node it was on, not a character string.
1) I have VFP 6 beta from DevCon and from MSDN. Haven't had much time to play with it, though.
2) The fonts stuff can be accessed through code. this.TreeView.Fonts.Name, .Size, .Bold, etc.
ImageList can be accessed through code also. In TreeView.Init:
this.object.imagelist = this.parent.imagelist.object
You don't need their property sheet, it just makes life easier (when it works).
Yes, they have broken this many times, in many ways. It does seem to work in VFP6 though.
3) Haven't tried to work with CreateDragImage. It IS on my "To-Do" list.
All this stuff would be much easier if the documentation didn't rot so bad!