mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 17:19:22 +02:00
LCL: don't expand/collapse on mouse click if treeview.ShowButtons is false based on idea from LU-HO (issue #13216)
git-svn-id: trunk@19557 -
This commit is contained in:
parent
ce24046167
commit
838bb221d3
@ -4669,7 +4669,7 @@ begin
|
||||
if ([ssDouble,ssTriple,ssQuad]*Shift)=[] then begin
|
||||
if (Button = mbLeft) and (CursorNode<>nil) then begin
|
||||
Exclude(fStates,tvsWaitForDragging);
|
||||
if CursorNode.HasChildren
|
||||
if CursorNode.HasChildren and ShowButtons
|
||||
and (LogicalX>=CursorNode.DisplayExpandSignLeft)
|
||||
and (LogicalX<CursorNode.DisplayExpandSignRight) then begin
|
||||
// mousedown occured on expand sign -> expand/collapse
|
||||
|
Loading…
Reference in New Issue
Block a user