Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView doubleclick
Message
De
30/06/2006 08:50:56
 
 
À
29/06/2006 15:26:45
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01126856
Message ID:
01133042
Vues:
22
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.
/A new technology turns into completely outdated stuff before you have a time to read "Getting Started..." section.
/If there are some "system programmers" then others are unsystematic.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform