@@ -6674,7 +6674,7 @@ procedure TCustomVirtualTreeOptions.SetMiscOptions(const Value: TVTMiscOptions);
6674
6674
Invalidate;
6675
6675
if not (csDesigning in ComponentState) then
6676
6676
begin
6677
- if toFullRepaintOnResize in TobeSet + ToBeCleared then
6677
+ if toFullRepaintOnResize in ToBeSet + ToBeCleared then
6678
6678
RecreateWnd;
6679
6679
if toAcceptOLEDrop in ToBeSet then
6680
6680
RegisterDragDrop(Handle, DragManager as IDropTarget);
@@ -11798,15 +11798,15 @@ destructor TVTHeader.Destroy;
11798
11798
11799
11799
procedure TVTHeader.FontChanged(Sender: TObject);
11800
11800
var
11801
- i : Integer;
11801
+ I : Integer;
11802
11802
lMaxHeight: Integer;
11803
11803
begin
11804
11804
if toAutoChangeScale in Treeview.TreeOptions.AutoOptions then
11805
11805
begin
11806
11806
// Find the largest Columns[].Spacing
11807
11807
lMaxHeight := 0;
11808
- for i := 0 to Self.Columns.Count - 1 do
11809
- lMaxHeight := Max(lMaxHeight, Columns[i ].Spacing);
11808
+ for I := 0 to Self.Columns.Count - 1 do
11809
+ lMaxHeight := Max(lMaxHeight, Columns[I ].Spacing);
11810
11810
// Calculate the required size based on the font, this is important as the use migth just vave increased the size of the icon font
11811
11811
with TBitmap.Create do
11812
11812
try
@@ -12132,17 +12132,17 @@ function TVTHeader.CanWriteColumns: Boolean;
12132
12132
12133
12133
procedure TVTHeader.ChangeScale(M, D: Integer);
12134
12134
var
12135
- i : Integer;
12135
+ I : Integer;
12136
12136
begin
12137
12137
// This method is only executed if toAutoChangeScale is set
12138
12138
if not ParentFont then
12139
12139
FFont.Size := MulDiv(FFont.Size, M, D);
12140
12140
Self.Height := MulDiv(FHeight, M, D);
12141
12141
// Scale the columns widths too
12142
- for i := 0 to FColumns.Count - 1 do
12142
+ for I := 0 to FColumns.Count - 1 do
12143
12143
begin
12144
- Self.FColumns[i ].Width := MulDiv(Self.FColumns[i ].Width, M, D);
12145
- end;//for i
12144
+ Self.FColumns[I ].Width := MulDiv(Self.FColumns[I ].Width, M, D);
12145
+ end;//for I
12146
12146
end;
12147
12147
12148
12148
//----------------------------------------------------------------------------------------------------------------------
@@ -14728,7 +14728,7 @@ function TBaseVirtualTree.CollectSelectedNodesLTR(MainColumn, NodeLeft, NodeRigh
14728
14728
if WithCheck and (Run.CheckType <> ctNone) then
14729
14729
Inc(TextLeft, CheckOffset);
14730
14730
if WithImages and HasImage(Run, ikNormal, MainColumn) then
14731
- Inc(TextLeft, GetNodeImageSize(run ).cx + 2);
14731
+ Inc(TextLeft, GetNodeImageSize(Run ).cx + 2);
14732
14732
if WithStateImages and HasImage(Run, ikState, MainColumn) then
14733
14733
Inc(TextLeft, StateImageOffset);
14734
14734
NextTop := CurrentTop + Integer(NodeHeight[Run]);
@@ -14905,7 +14905,7 @@ function TBaseVirtualTree.CollectSelectedNodesRTL(MainColumn, NodeLeft, NodeRigh
14905
14905
if WithCheck and (Run.CheckType <> ctNone) then
14906
14906
Dec(TextRight, CheckOffset);
14907
14907
if WithImages and HasImage(Run, ikNormal, MainColumn) then
14908
- Dec(TextRight, GetNodeImageSize(run ).cx + 2);
14908
+ Dec(TextRight, GetNodeImageSize(Run ).cx + 2);
14909
14909
if WithStateImages and HasImage(Run, ikState, MainColumn) then
14910
14910
Dec(TextRight, StateImageOffset);
14911
14911
NextTop := CurrentTop + Integer(NodeHeight[Run]);
@@ -15027,7 +15027,7 @@ procedure TBaseVirtualTree.ClearNodeBackground(const PaintInfo: TVTPaintInfo; Us
15027
15027
else
15028
15028
Offset := Point(0, 0);
15029
15029
15030
- DoBeforeItemErase(Canvas, Node, R, Backcolor , EraseAction);
15030
+ DoBeforeItemErase(Canvas, Node, R, BackColor , EraseAction);
15031
15031
15032
15032
with Canvas do
15033
15033
begin
@@ -24211,7 +24211,7 @@ procedure TBaseVirtualTree.HandleMouseDblClick(var Message: TWMMouse; const HitI
24211
24211
DoNodeDblClick(HitInfo);
24212
24212
24213
24213
Node := nil;
24214
- if (hiOnItem in HitInfo.HitPositions) and (hitInfo .HitColumn > NoColumn) and
24214
+ if (hiOnItem in HitInfo.HitPositions) and (HitInfo .HitColumn > NoColumn) and
24215
24215
(coFixed in FHeader.FColumns[HitInfo.HitColumn].FOptions) then
24216
24216
begin
24217
24217
if hiUpperSplitter in HitInfo.HitPositions then
@@ -36561,7 +36561,7 @@ function TCustomVirtualStringTree.ContentToHTML(Source: TVSTTextSourceType; Capt
36561
36561
Buffer.Add('</tr>');
36562
36562
Buffer.AddNewLine;
36563
36563
if Assigned(FOnAfterHeaderExport) then
36564
- FOnAfterHeaderExport(self , etHTML);
36564
+ FOnAfterHeaderExport(Self , etHTML);
36565
36565
end;
36566
36566
36567
36567
// Now go through the tree.
@@ -36879,7 +36879,7 @@ function TCustomVirtualStringTree.ContentToRTF(Source: TVSTTextSourceType): RawB
36879
36879
if (Text[I] = WideLF) then
36880
36880
Buffer.Add( '{\par}' )
36881
36881
else
36882
- if (Text[i ] <> WideCR) then
36882
+ if (Text[I ] <> WideCR) then
36883
36883
begin
36884
36884
Buffer.Add(Format('\u%d\''3f', [SmallInt(Text[I])]));
36885
36885
Continue;
@@ -36985,7 +36985,7 @@ function TCustomVirtualStringTree.ContentToRTF(Source: TVSTTextSourceType): RawB
36985
36985
TextPlusFont(Columns[I].Text, Header.Font);
36986
36986
Buffer.Add('\cell');
36987
36987
if Assigned(FOnAfterColumnExport) then
36988
- FOnAfterColumnExport( self , etRTF, Columns[I] );
36988
+ FOnAfterColumnExport(Self , etRTF, Columns[I]);
36989
36989
end;
36990
36990
Buffer.Add('\row');
36991
36991
if Assigned(FOnAfterHeaderExport) then
0 commit comments