[Lazarus] how to handle Shift=[ssCtrl]

Vojtěch Čihák vojtech.cihak at atlas.cz
Thu Apr 2 14:55:14 CEST 2015


You are right, what I said is valid for MouseDown.
In MouseUp you have ssCtrl in Shift and Buton=mbRight
 
V.
 
______________________________________________________________
> Od: FreeMan <freeman35 at delphiturkiye.com>
> Komu: Lazarus mailing list <lazarus at lists.lazarus.freepascal.org>
> Datum: 02.04.2015 14:29
> Předmět: Re: [Lazarus] how to handle Shift=[ssCtrl]
>
in mouseup tnotifyevent,
shift parameter has not value of mouse button, values is zero. Button 
parameter has value, mbRight etc.
if ssCtrl in Shift then...  has same result, I mean not handle ctrl or 
other keys(ssalt, ssshift)

On 2.04.2015 14:54, Vojtěch Čihák wrote:
>
> Hi,
>
> You must use:
>
> if ssCtrl in Shift then ...
>
> instead.
>
> That's because mouse-buttons are in Shift too. If you do 
> Ctrl+right-click, then Shift=[ssRight, ssCtrl]. And possibly something 
> else (ssCaps).
>
> V.
>


--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus <http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150402/21e0f3a8/attachment-0003.html>


More information about the Lazarus mailing list