mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 10:52:22 +02:00
LCL: Don't trigger click event on TreeView's fold-arrow if another node is selected. Issue #37051.
git-svn-id: trunk@63147 -
This commit is contained in:
parent
c236e626e7
commit
b4415f3aa4
@ -3518,7 +3518,10 @@ type
|
||||
procedure Change(Node: TTreeNode); virtual;
|
||||
procedure Collapse(Node: TTreeNode); virtual;
|
||||
procedure CreateWnd; override;
|
||||
procedure Click; override;
|
||||
procedure DblClick; override;
|
||||
//procedure TripleClick; override; - Are these needed?
|
||||
//procedure QuadClick; override;
|
||||
procedure Delete(Node: TTreeNode); virtual;
|
||||
procedure DestroyWnd; override;
|
||||
procedure DoCreateNodeClass(var NewNodeClass: TTreeNodeClass); virtual;
|
||||
|
@ -3315,10 +3315,16 @@ begin
|
||||
inherited CreateWnd;
|
||||
end;
|
||||
|
||||
procedure TCustomTreeView.Click;
|
||||
begin
|
||||
if FMouseDownNodeSelected then
|
||||
inherited;
|
||||
end;
|
||||
|
||||
procedure TCustomTreeView.DblClick;
|
||||
begin
|
||||
if FMouseDownNodeSelected then
|
||||
inherited DblClick;
|
||||
inherited;
|
||||
end;
|
||||
|
||||
procedure TCustomTreeView.InitializeWnd;
|
||||
|
Loading…
Reference in New Issue
Block a user