Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON KEY LABEL RightMouse
Message
From
11/09/2008 12:58:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
11/09/2008 12:29:18
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01346675
Message ID:
01346699
Views:
7
>>>We use ON KEY LABEL RightMouse to exit our forms. The issue is coming up now if there is a form on top of another form, then the Right Click will close both forms. In tracing, it looks like clicking the right mouse button causes two actions, when it goes down and when it comes back up. I would have thought it would only happen on the Up after a Down, but that doesn't seem to be the case. Anything I can do to still keep this functionality and have it work correctly?
>>
>>You might use the RightClick() or the MouseDown() event.
>
>I'm trying that now, but it does not seem to respond. I've got THISFORM.Release in there, but nothing happens when I right click. I even put an ON KEY LABEL RIGHTMOUSE just to make sure that was clear.

I'll assume you tried the RightClick() Event.

Form.RightClick() certainly responds, as I can check with a MessageBox(). It even release the form, if I issue ThisForm.Release().

I think you need to do some debugging, lest some part of your framework is interfering. For example, put a SET STEP ON as the first command in Form.RightClick().
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