Re: Combination key Ctrl+Alt+C

Posted by webmaster Guido on January 09, 2004 at 21:04:33:

In Reply to: Combination key Ctrl+Alt+C posted by sinajmon on January 08, 2004 at 08:27:04:

: How I can use Ctrl+Alt+C
: In Component Keydown
: (Key= ord(C) and (shift = ssCltl) and (shift = ssAlt) its not working

------------------------

Parameter "Shift" is a Pascal "set", so you have to use the "in" operator to check wether ssCtl and ssAlt are "in" the set of shift-keys that are down.
Try it like this:

(Key = ...) and (ssCtl in Shift) and (ssAlt in Shift)


[ Delphi Forum ] [ DelphiLand: free Delphi source code, tips, tutorials ]