[Lazarus] TShiftstate
Paul Ishenin
webpirat at mail.ru
Wed Aug 6 17:37:33 CEST 2008
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.
More information about the Lazarus
mailing list