You are right, what I said is valid for MouseDown.
In MouseUp you have ssCtrl in Shift and Buton=mbRight
V.
______________________________________________________________
Od: FreeMan <freema...@delphiturkiye.com>
Komu: Lazarus mailing list <lazarus@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@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus