<p style="padding:0 0 0 0; margin:0 0 0 0;">You are right, what I said is valid for MouseDown.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">In MouseUp you have ssCtrl in Shift and Buton=mbRight</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">V.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________________________________________________<br />
> Od: FreeMan <freeman35@delphiturkiye.com><br />
> Komu: Lazarus mailing list <lazarus@lists.lazarus.freepascal.org><br />
> Datum: 02.04.2015 14:29<br />
> Předmět: Re: [Lazarus] how to handle Shift=[ssCtrl]<br />
></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">in mouseup tnotifyevent,<br />
shift parameter has not value of mouse button, values is zero. Button <br />
parameter has value, mbRight etc.<br />
if ssCtrl in Shift then... has same result, I mean not handle ctrl or <br />
other keys(ssalt, ssshift)<br />
<br />
On 2.04.2015 14:54, Vojtěch Čihák wrote:<br />
><br />
> Hi,<br />
><br />
> You must use:<br />
><br />
> if ssCtrl in Shift then ...<br />
><br />
> instead.<br />
><br />
> That's because mouse-buttons are in Shift too. If you do <br />
> Ctrl+right-click, then Shift=[ssRight, ssCtrl]. And possibly something <br />
> else (ssCaps).<br />
><br />
> V.<br />
><br />
<br />
<br />
--<br />
_______________________________________________<br />
Lazarus mailing list<br />
Lazarus@lists.lazarus.freepascal.org<br />
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a></p>