Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is SHIFT pressed?
Message
From
23/01/2004 07:56:45
 
 
To
23/01/2004 07:14:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00869804
Message ID:
00869812
Views:
14
Thanks. But this is not for me.
KeyPress event does not react on single Shift key and it is not fired until keystoke is released.

Now let me explain. I want to provide multi-selection functionality in grid, so user would be able to select multiple records with mouse or keyboard.
The most flexible solution is to read Shift key status to in the AfterRowColChange event handler to recognise that cursor movement was a selection (Like Shift+Click selects multiple files in explorer).
MouseDown event also does not help becouse it is fired after AfterRowColChange event.

API can help but it uses complex structures. I cannot find easy way to read Shift key status in API reference.
/A new technology turns into completely outdated stuff before you have a time to read "Getting Started..." section.
/If there are some "system programmers" then others are unsystematic.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform