Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Click with Ctrl
Message
From
27/12/2005 23:36:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
27/12/2005 23:27:59
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 6 SP3
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01081170
Message ID:
01081172
Views:
9
>Dear Experts
>
>I want to run some codes while Mouse Left Click + Ctrl key combination.
>I mean, While pressing Ctrl key If I click on Lable12 then this message should appear
>messagebox("You pressed ctrl+clik")
>What should I write on lable12's keypress or mouse down event
>
>Please help

The Click() Event doesn't have a way to check for additional keys, but the MouseDown() Event has. Here is an example:
LPARAMETERS nButton, nShift, nXCoord, nYCoord
if nShift = 2
	MessageBox("Ctrl-Click")
else
	MessageBox("Simple click, or some other combination")
endif
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform