mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 11:01:20 +02:00
LCL: buttoncontrol: prevent double click invoke in case csClickEvents are set. affected was win32.
git-svn-id: trunk@51635 -
This commit is contained in:
parent
ee7305772d
commit
8b31887c6f
@ -17,7 +17,8 @@ end;
|
||||
|
||||
procedure TButtonControl.WMDefaultClicked(var Message: TLMessage);
|
||||
begin
|
||||
Click;
|
||||
if not ((csClickEvents in ControlStyle) and (csClicked in ControlState)) then // prevent double click in case of csClickEvents, because clicks are send in MouseUp
|
||||
Click;
|
||||
end;
|
||||
|
||||
class procedure TButtonControl.WSRegisterClass;
|
||||
|
Loading…
Reference in New Issue
Block a user