Alex du Plessis wrote:
> I am trying to check a shift state in an onMouseUp event
>
> if shift=ssShift then
>   
if you want to check if shift is pressed then

[code]
if ssShift in shift then
[/code]

or

[code]
if [ssShift] * shift <> [] then
[/code]

if you want to check if only shift modifier is pressed and no other 
modifiers are pressed (ctrl, alt, mouse buttons) then

[code]
if shift = [ssShift] then
[/code]

Best regards,
Paul Ishenin.
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to