Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right Click event and TreeView.NodeClick event
Message
De
30/05/2002 04:07:15
 
 
À
30/05/2002 02:15:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00662870
Message ID:
00662888
Vues:
13
You can use MouseDown event to detect left or right mouse button is pressed:

if Button = 1 && left button
&& your code goes here
endif
if Button = 2 && right button
&& your code goes here
endif

In this code Button is passed parameter in MouseDown event. You can hold button in variable and use it in NodeClick event.

In VB events are fired in this order - MouseDown, NodeClick, MouseUp. In VFP there are little problem - if you click on the node, MouseUp event will NOT fire. Therefore, in VFP you cannot use MouseUp event for this detection.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform