Highlighted
Absent Member.
Absent Member.
986 views

[archive] Can you detect a Ctrl-Click?

[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)?
0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Can you detect a Ctrl-Click?

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.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Can you detect a Ctrl-Click?

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.)
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Can you detect a Ctrl-Click?

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.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.