mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 03:19:17 +02:00
LCL: treeview: High-DPI: use 0 for default (automatic) expand size
git-svn-id: trunk@54239 -
This commit is contained in:
parent
eb5e2e2060
commit
a597ac1006
@ -3574,7 +3574,7 @@ type
|
|||||||
property DefaultItemHeight: integer read FDefItemHeight write SetDefaultItemHeight default DefaultTreeNodeHeight;
|
property DefaultItemHeight: integer read FDefItemHeight write SetDefaultItemHeight default DefaultTreeNodeHeight;
|
||||||
property DropTarget: TTreeNode read GetDropTarget write SetDropTarget;
|
property DropTarget: TTreeNode read GetDropTarget write SetDropTarget;
|
||||||
property ExpandSignColor: TColor read FExpandSignColor write FExpandSignColor default clWindowFrame;
|
property ExpandSignColor: TColor read FExpandSignColor write FExpandSignColor default clWindowFrame;
|
||||||
property ExpandSignSize: integer read FExpandSignSize write SetExpandSignSize default -1; // use -1 for default
|
property ExpandSignSize: integer read FExpandSignSize write SetExpandSignSize default 0; // use 0 for default
|
||||||
property ExpandSignType: TTreeViewExpandSignType
|
property ExpandSignType: TTreeViewExpandSignType
|
||||||
read FExpandSignType write SetExpandSignType default tvestTheme;
|
read FExpandSignType write SetExpandSignType default tvestTheme;
|
||||||
property Images: TCustomImageList read FImages write SetImages;
|
property Images: TCustomImageList read FImages write SetImages;
|
||||||
|
@ -3208,7 +3208,7 @@ begin
|
|||||||
// FBackgroundColor := clWindow;
|
// FBackgroundColor := clWindow;
|
||||||
FDefItemHeight := DefaultTreeNodeHeight;
|
FDefItemHeight := DefaultTreeNodeHeight;
|
||||||
FExpandSignType := tvestTheme;
|
FExpandSignType := tvestTheme;
|
||||||
FExpandSignSize := -1;
|
FExpandSignSize := 0;
|
||||||
Details := ThemeServices.GetElementDetails(ttGlyphOpened);
|
Details := ThemeServices.GetElementDetails(ttGlyphOpened);
|
||||||
FThemeExpandSignSize := ThemeServices.GetDetailSize(Details).cx;
|
FThemeExpandSignSize := ThemeServices.GetDetailSize(Details).cx;
|
||||||
FTreeNodes := CreateNodes;
|
FTreeNodes := CreateNodes;
|
||||||
@ -4487,7 +4487,7 @@ end;
|
|||||||
|
|
||||||
function TCustomTreeView.GetRealExpandSignSize: integer;
|
function TCustomTreeView.GetRealExpandSignSize: integer;
|
||||||
begin
|
begin
|
||||||
if FExpandSignSize>=0 then
|
if FExpandSignSize>0 then
|
||||||
Result := FExpandSignSize
|
Result := FExpandSignSize
|
||||||
else
|
else
|
||||||
if ExpandSignType = tvestTheme then
|
if ExpandSignType = tvestTheme then
|
||||||
|
Loading…
Reference in New Issue
Block a user