[Lazarus] how to handle Shift=[ssCtrl]

FreeMan freeman35 at delphiturkiye.com
Thu Apr 2 14:29:07 CEST 2015


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.
>





More information about the Lazarus mailing list