Trapping clicks and keys (OpenInsight 32-bit Specific)
At 08 MAY 2003 11:36:54AM Richard Channer wrote:
I have a multi-select table but wish to control whether or not multiple rows are required. The best way for me to achieve this would be to trap whehter the user simply left-clicked, or pressed Shift+Left click or CTRL+Left click.
I can trap simple left clicks OK (Qualify_event & Winmsg) - but anyone any idea how I can trap CTRL+Leftclick or Shift+Leftclick?
Cheers, Rich
At 08 MAY 2003 12:05PM Richard Hunt wrote:
Richard try this…
During the trapping of the left click, you can check if the shift and/or ctrl keys are pressed. You check for these pressed keys by using the following sentences…
DECLARE FUNCTION GETASYNCKEYSTATE
SHIFTKEY_PRESSED=(BITAND(GETASYNCKEYSTATE(16),32768) EQ 32768)
CTRLKEY_PRESSED=(BITAND(GETASYNCKEYSTATE(17),32768) EQ 32768)
At 09 MAY 2003 04:10AM Rich Channer wrote:
Fantastic - works a charm!
Cheers mate,
Rich