Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALT key and MouseDown Event
Message
 
To
01/08/2002 09:43:38
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00684778
Message ID:
00684964
Views:
15
Mike,

You're correct the Alt is not trapped. Could you use some other key combination?

Sorry, but maybe someone else can jump in here with another suggestion.
Caroline

>Caroline,
>
>That's an interesting idea but I have the feeling it may not work. I'll give it a try anyway. Perhaps I should let you know a little more of the details ("truth") behind the problem.
>
>I actually have an ActiveX control (MapObjects2) on my form that displays a map of streets. What I am trying to accomplish is to let the user select regions of the map by holding down the ALT key while drawing a rectangle on the map using the left mouse button. As long as the ALT key is pressed, this action of selecting regions can continue. Notice I said regions. The process can be repeated so at some point the left mouse button must be released (but the ALT key must still be pressed). As I've said before, all is fine for the selection process using the mouse while keeping the ALT key pressed. The problem happens when the user is finished selecting and releases the ALT key!
>
>I don't know of any event that can be used when the ALT key is released so as to keyboard another ALT or ESC.
>
>I hope that this makes some sense.
>
>Mike
>
>>On second thought I guess that the menu select may take precedence so how about in the MouseUp() if the Alt was used in the MouseDown() sending another Alt to the keyboard, that way the Menu would just flash quickly.
Caroline
Previous
Reply
Map
View

Click here to load this message in the networking platform