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:
vincents 2009-04-21 14:52:32 +00:00
parent ce24046167
commit 838bb221d3

View File

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