fix hittest for treeview (issue #748)

git-svn-id: trunk@8381 -
This commit is contained in:
micha 2005-12-28 16:13:40 +00:00
parent ee713312c6
commit e91eafaf42

View File

@ -3167,16 +3167,16 @@ begin
Result := [];
if (X>=0) and (X<ClientWidth) and (Y>=0) and (Y<(ClientHeight-ScrollBarWidth))
then begin
inc(Y,FScrolledTop);
Node:=GetNodeAtY(Y);
if Node<>nil then begin
inc(X,FScrolledLeft);
Include(Result,htOnItem);
if X<Node.DisplayExpandSignLeft then
Include(Result,htOnIndent)
else if X<Node.DisplayIconLeft then
Include(Result,htOnButton)
else if X<Node.DisplayStateIconLeft then
Include(Result,htOnItem)
Include(Result,htOnIcon)
else if X<Node.DisplayTextLeft then
Include(Result,htOnStateIcon)
else if X<Node.DisplayTextRight then