Answered CTRL-Mouse-Click

Hi everybody

OE 11.7, Windows

Can somebody please tell me how to find out, if the CTRL (or ALT / or SHIFT) key is pressed while a mouse-click happens ?
I'm looking for a funktion like: ON CTRL-MOUSE-SELECT-CLICK OF <button>

TIA, Wolf
 

Stefan

Active Member
I don't think this is possible from ABL directly, we use windows API GetKeyState.

Code:
PROCEDURE GetKeyState EXTERNAL "user32":
   DEFINE INPUT         PARAMETER i_lkey               AS LONG     NO-UNDO.
   DEFINE       RETURN  PARAMETER o_return_value       AS SHORT    NO-UNDO.

END PROCEDURE.
 
Thanks Stefan, that's exactly what I was looking for !
 
Top