Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/c178eea0075e507085256d200055c6d1.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1