Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView doubleclick
Message
 
 
To
30/06/2006 08:50:56
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01126856
Message ID:
01133069
Views:
23
There's nothing mysterious abou that. The HiTest() returns value in twips. See Re: TreeView.HitTest returns invalid reference Message #882350

>Oh, I found that under some conditions HitTest needs coordinates multiplied by 15. (AFAIK to convert from pixels to VB units but I'm not sure).
>Very weird thing.
>
>Please try this modified code:
>
>LOCAL laMice[4]
>IF AMOUSEOBJ(laMice) = 4 THEN
>  IF NOT ISNULL(This.HitTest(15*laMice[3], 15*laMice[4])) THEN
>    * Doubleclick action
>  ENDIF
>ENDIF
>
>
>Hope this helps.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform