From 3925ebaa0db945bfff03f29598808d1f60bb538b Mon Sep 17 00:00:00 2001 From: jujibo Date: Sun, 9 May 2021 08:20:11 +0000 Subject: [PATCH] Fix double click git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8008 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/jujiboutils/src/jbutton.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/jujiboutils/src/jbutton.pas b/components/jujiboutils/src/jbutton.pas index 1cc49ac6f..303e19ce3 100644 --- a/components/jujiboutils/src/jbutton.pas +++ b/components/jujiboutils/src/jbutton.pas @@ -164,14 +164,14 @@ begin FJLabel.Parent := Self; FJLabel.ParentFont := False; FJLabel.SetSubComponent(True); - FJLabel.ControlStyle := FJLabel.ControlStyle + [csNoDesignSelectable] - - [csDoubleClicks]; + FJLabel.ControlStyle := FJLabel.ControlStyle + [csNoDesignSelectable]; FJLabel.Alignment := taCenter; FJLabel.Layout := tlCenter; FJLabel.Align := alClient; FJLabel.OnMouseDown := @JLabel1MouseDown; FJLabel.OnMouseUp := @JLabel1MouseUp; FJLabel.OnClick := @JLabel1MouseClick; + FJLabel.OnDblClick := @JLabel1MouseClick; end; end.