mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 00:19:15 +02:00
lcl: implement treeview item drawing for default theme manager
git-svn-id: trunk@24839 -
This commit is contained in:
parent
5d0f6c878d
commit
7f820b7f3f
@ -2124,7 +2124,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
teTreeView:
|
teTreeView:
|
||||||
begin
|
begin
|
||||||
if Details.Part = TVP_GLYPH then
|
if Details.Part in [TVP_GLYPH, TVP_HOTGLYPH] then
|
||||||
begin
|
begin
|
||||||
Rectangle(DC, ARect.Left, ARect.Top, ARect.Right, ARect.Bottom);
|
Rectangle(DC, ARect.Left, ARect.Top, ARect.Right, ARect.Bottom);
|
||||||
Tmp := (ARect.Bottom + ARect.Top) shr 1;
|
Tmp := (ARect.Bottom + ARect.Top) shr 1;
|
||||||
@ -2136,6 +2136,18 @@ begin
|
|||||||
MoveToEx(DC, Tmp, ARect.Top + 2, nil);
|
MoveToEx(DC, Tmp, ARect.Top + 2, nil);
|
||||||
LineTo(DC, Tmp, ARect.Bottom - 2);
|
LineTo(DC, Tmp, ARect.Bottom - 2);
|
||||||
end;
|
end;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
if Details.Part = TVP_TREEITEM then
|
||||||
|
begin
|
||||||
|
case Details.State of
|
||||||
|
TREIS_NORMAL: FillWithColor(ARect, clWindow);
|
||||||
|
TREIS_HOT: FillWithColor(ARect, clHotLight);
|
||||||
|
TREIS_SELECTED: FillWithColor(ARect, clHighlight);
|
||||||
|
TREIS_DISABLED: FillWithColor(ARect, clWindow);
|
||||||
|
TREIS_SELECTEDNOTFOCUS: FillWithColor(ARect, clBtnFace);
|
||||||
|
TREIS_HOTSELECTED: FillWithColor(ARect, clHighlight);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
teToolTip:
|
teToolTip:
|
||||||
|
Loading…
Reference in New Issue
Block a user