Skip to main content

[Migrated content. Thread originally posted on 21 August 2003]

If I have a push-button control, can I detect if the button has been ctrl-clicked instead of just clicked (i.e. clicked while holding down the control key)?

[Migrated content. Thread originally posted on 21 August 2003]

If I have a push-button control, can I detect if the button has been ctrl-clicked instead of just clicked (i.e. clicked while holding down the control key)?
Perhaps, if you check the keyboard flags in the instant your app respond to the mouse click. See another thread for a demo of how to check the keyboard flags.

[Migrated content. Thread originally posted on 21 August 2003]

If I have a push-button control, can I detect if the button has been ctrl-clicked instead of just clicked (i.e. clicked while holding down the control key)?
Perhaps, if you check the keyboard flags in the instant your app respond to the mouse click. See another thread for a demo of how to check the keyboard flags.

[Migrated content. Thread originally posted on 21 August 2003]

If I have a push-button control, can I detect if the button has been ctrl-clicked instead of just clicked (i.e. clicked while holding down the control key)?
I'm not sure what you mean by keyboard flags.

Do you mean the Windows GetKeyState api call? Or is there a way to check it that is built in to the runtime?

(The API call is OK, but it won't work with the thin client - probably OK in our case though.)

[Migrated content. Thread originally posted on 21 August 2003]

If I have a push-button control, can I detect if the button has been ctrl-clicked instead of just clicked (i.e. clicked while holding down the control key)?
Yes, that would be the GetKeyState function. You are right that it won't work with Thin Client as of today, but TC are going to support DLLs in an upcoming release.