Skip to content

Commit e0e43d8

Browse files
committed
Merge remote-tracking branch 'upstream/V5_stable' into lazarus_v5
# Conflicts: # Demos/Objects/MVCTypes.pas # Source/VirtualTrees.pas
2 parents fa636b1 + 9437f67 commit e0e43d8

File tree

4 files changed

+29
-9
lines changed

4 files changed

+29
-9
lines changed

CHANGES.txt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
V5.5.1: (planned for 13 Oct 2014)
1+
V5.5.4:
2+
* Fixed #506: Autosort is being triggered at design-time
3+
4+
V5.5.3: (08 Jan 2015)
5+
* Fixed issue #495: Incorrect text vertical align when changing font in OnPaintText
6+
* Fixed Issue #496: Access violation at VT destroy
7+
* Fixed issue #498: Node totalheight not initialized properly when adding new node and using toVariableNodeHeight
8+
9+
V5.5.2: (10 Nov 2014)
10+
* Various improvements regarding code style
11+
* Implemented #471: Added emVisibleDueToExpansion and emSelected to TVTExportMode
12+
* Fixed issue #488: XE7 packages should depend on one another and use suffix 21
13+
* Fixed issue #462: Undo r636, make VirtualTreesD require VirtualTreesR again
14+
* Fixed issue #489 XE2 compiler switch error
15+
16+
V5.5.1: (13 Oct 2014)
217
* Fixed issue #479: The style hooks for the VCL styles are now registered for TVirtualStringTree and TVirtualDrawTree instead of TBaseVirtualTree, which makes it easier to use own style hooks in derived classes.
318
* Partial fix for issue #478: The standard VCL property StyleElemets (public in TControl in RAD Studio XE3 and higher) is now supported and published for TVirtualStringTree and TVirtualDrawTree (XE3 and higher). This means you can define if the font and the backgrounbd color is taken from the VCL style or the control's properties. Leaving out seBorder is not yet working well, more work will be necessary.
419
* Fixed issue #473: Return type of GetUtilityImages should be TCustomImageList

Demos/Objects/MVCTypes.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ function TMVCTreeView.InternalData(Node: PVirtualNode): Pointer;
808808
if (Node = RootNode) or (Node = nil) then
809809
Result := nil
810810
else
811-
Result := PChar(Node) + FInternalDataOffset;
811+
Result := PByte(Node) + FInternalDataOffset;
812812
end;
813813

814814
function TMVCTreeView.InternalDataSize: Cardinal;

INSTALL.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
Supported Delphi version: Delphi 7, Delphi 2006 - XE, RAD Studio XE2
2-
Supported Windows Versions: XP, 2003, Vista, 2008, 7, 2008R2
1+
Supported Delphi version: Delphi 7, Delphi 2006 - XE, RAD Studio XE2 - XE7
2+
Supported Windows Versions: XP and higher
33

44

55
The former installer is no longer maintained, but installation is quite easy:
66
Extract the entire(!) ZIP file and follow the instzructions below for your
77
Delphi / RAD Studio version.
88

99

10-
Delphi / RAD Studio XE - XE6 Installation
10+
Delphi / RAD Studio XE - XE7 Installation
1111
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1212
1. Open the project group "Packages\RAD Studio XE*\RAD Studio XE*.groupproj"
1313
2. Right click on "VirtualTreesD*.bpl" and click "Install"

Source/VirtualTrees.pas

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ interface
103103

104104
VTMajorVersion = 5;
105105
VTMinorVersion = 5;
106-
VTReleaseVersion = 1;
106+
VTReleaseVersion = 3;
107107
VTTreeStreamVersion = 2;
108108
VTHeaderStreamVersion = 6; // The header needs an own stream version to indicate changes only relevant to the header.
109109

@@ -8160,6 +8160,8 @@ procedure TVirtualTreeColumns.HandleClick(P: TPoint; Button: TMouseButton; Force
81608160
NewClickIndex: Integer;
81618161

81628162
begin
8163+
if (csDesigning in Header.Treeview.ComponentState) then
8164+
exit;
81638165
// Convert vertical position to local coordinates.
81648166
//lclheader
81658167
//Inc(P.Y, FHeader.FHeight);
@@ -14294,6 +14296,7 @@ procedure TBaseVirtualTree.SetChildCount(Node: PVirtualNode; NewChildCount: Card
1429414296
lNodeHeight := Child.NodeHeight;
1429514297
DoMeasureItem(Canvas, Child, lNodeHeight);
1429614298
Child.NodeHeight := lNodeHeight;
14299+
Child.TotalHeight := lNodeHeight;
1429714300
end;
1429814301
Inc(NewHeight, Child.NodeHeight);
1429914302
end;
@@ -26318,8 +26321,10 @@ procedure TBaseVirtualTree.EndUpdate;
2631826321
end;
2631926322
end;
2632026323

26321-
if FUpdateCount = 0 then
26322-
DoUpdating(usEnd)
26324+
if FUpdateCount = 0 then begin
26325+
DoUpdating(usEnd);
26326+
EnsureNodeSelected();
26327+
end
2632326328
else
2632426329
DoUpdating(usUpdate);
2632526330
end;
@@ -32994,8 +32999,8 @@ procedure TCustomVirtualStringTree.PaintNormalText(var PaintInfo: TVTPaintInfo;
3299432999
// for 9x/Me.
3299533000
if vsMultiline in Node.States then
3299633001
begin
32997-
Height := ComputeNodeHeight(Canvas, Node, Column);
3299833002
DoPaintText(Node, Canvas, Column, ttNormal);
33003+
Height := ComputeNodeHeight(Canvas, Node, Column);
3299933004
// Disabled node color overrides all other variants.
3300033005
if (vsDisabled in Node.States) or not Enabled then
3300133006
Canvas.Font.Color := FColors.DisabledColor;

0 commit comments

Comments
 (0)