Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlighting Node Item in TreeView (Like sample)
Message
 
To
29/04/2002 10:53:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00649792
Message ID:
00650446
Views:
25
>>When an item is dragged from a listbox OVER an node item within the treeview, I want that node to appear highlighted or selected. I have a tree with two levels (parent & children).
>>I looked at VFP 7 sample ...\samples\solution\tahoe\listdd, and started with their code under OLEdragOver, setup the drap icons, and etc..., and have been tinkering with it but I have not been able to get it to work correctly. The MSDN help has it that you can simply plug the X & Y parameters into HITTEST() and get the right node object but that didn't work. The sample multiplies and divides x & y but specific constants but that did not work. I looked through the properites of the sample to see if the constants had any rhyme or reason and noted one number equaled the .height of that treeview and the other to how .left it was times 10. I tried that with my treeview and it worked "a little" strangely enough but it was very inaccurate.
>>
>>Any help to this misguided soul will be appreciated.
>
>Wayne,
>15 is not a constant nor magic value. It comes from horizontal-vertical aspect values (generally 96 pixels per inch). One inch is 1440 twips (72 dpi and 1 point = 20 twips). 1440/96 = 15.
>Check UT magazine Jne 2001 issue with sample code. It has the dragover highlighting code almost same as VFP samples'
>Cetin
Cetin
Does this mean that the value will change with screen resolution?
Caroline
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform