mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 07:59:44 +02:00
LCL: added TTreeview.TreeLinePenStyle from Paul Michell (issue #12459)
git-svn-id: trunk@17099 -
This commit is contained in:
parent
609f700362
commit
c32d7d3fa6
@ -2210,6 +2210,7 @@ type
|
||||
FStates: TTreeViewStates;
|
||||
FTopItem: TTreeNode;
|
||||
FTreeLineColor: TColor;
|
||||
FTreeLinePenStyle: TPenStyle;
|
||||
FExpandSignColor : TColor;
|
||||
FTreeNodes: TTreeNodes;
|
||||
procedure CanvasChanged(Sender: TObject);
|
||||
@ -2434,6 +2435,7 @@ type
|
||||
property SeparatorColor: TColor read fSeparatorColor write SetSeparatorColor default clGray;
|
||||
property TopItem: TTreeNode read GetTopItem write SetTopItem;
|
||||
property TreeLineColor: TColor read FTreeLineColor write FTreeLineColor default clWindowFrame;
|
||||
property TreeLinePenStyle: TPenStyle read FTreeLinePenStyle write FTreeLinePenStyle default psDot;
|
||||
property ExpandSignColor: TColor read FExpandSignColor write FExpandSignColor default clWindowFrame;
|
||||
published
|
||||
property TabStop default true;
|
||||
@ -2528,6 +2530,7 @@ type
|
||||
property Options;
|
||||
property Items;
|
||||
property TreeLineColor;
|
||||
property TreeLinePenStyle;
|
||||
property ExpandSignColor;
|
||||
end;
|
||||
|
||||
|
@ -2772,6 +2772,7 @@ begin
|
||||
FStateChangeLink.OnChange := @ImageListChange;
|
||||
FStates:=[tvsMaxLvlNeedsUpdate,tvsMaxRightNeedsUpdate,tvsScrollbarChanged];
|
||||
FTreeLineColor := clWindowFrame;
|
||||
FTreeLinePenStyle := psDot;
|
||||
FExpandSignColor := clWindowFrame;
|
||||
end;
|
||||
|
||||
@ -4273,7 +4274,7 @@ begin
|
||||
end;
|
||||
// draw tree lines
|
||||
Pen.Color:=TreeLineColor;
|
||||
Pen.Style:=psDot;
|
||||
Pen.Style:=TreeLinePenStyle;
|
||||
x:=DrawTreeLines(Node);
|
||||
Pen.Style:=psSolid;
|
||||
// draw expand sign
|
||||
|
Loading…
Reference in New Issue
Block a user