LCL: buttoncontrol: prevent double click invoke in case csClickEvents are set. affected was win32.

git-svn-id: trunk@51635 -
This commit is contained in:
ondrej 2016-02-16 10:16:32 +00:00
parent ee7305772d
commit 8b31887c6f

View File

@ -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;