Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right Click event and TreeView.NodeClick event
Message
From
30/05/2002 04:07:15
 
 
To
30/05/2002 02:15:33
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00662870
Message ID:
00662888
Views:
15
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?...

Previous
Reply
Map
View

Click here to load this message in the networking platform