@@ -201,8 +201,6 @@ TCustomVirtualStringTree = class;
201201 tstChecked // Only checked nodes are rendered
202202 );
203203
204- TVTPaintText = procedure(Sender: TBaseVirtualTree; const TargetCanvas: TCanvas; Node: PVirtualNode; Column: TColumnIndex;
205- TextType: TVSTTextType) of object ;
206204 TVSTGetTextEvent = procedure(Sender: TBaseVirtualTree; Node: PVirtualNode; Column: TColumnIndex;
207205 TextType: TVSTTextType; var CellText: string) of object ;
208206 TVSTGetHintEvent = procedure(Sender: TBaseVirtualTree; Node: PVirtualNode; Column: TColumnIndex;
@@ -250,8 +248,6 @@ TCustomVirtualStringTree = class(TVTAncestor)
250248 FTextHeight: Integer; // true size of the font
251249 FEllipsisWidth: Integer; // width of '...' for the current font
252250
253- FOnPaintText: TVTPaintText; // triggered before either normal or fixed text is painted to allow
254- // even finer customization (kind of sub cell painting)
255251 FOnGetText: TVSTGetTextEvent; // used to retrieve the string to be displayed for a specific node
256252 fOnGetCellText: TVSTGetCellTextEvent; // used to retrieve the normal and static text of a tree node
257253 FOnGetHint: TVSTGetHintEvent; // used to retrieve the hint to be displayed for a specific node
@@ -298,8 +294,6 @@ TCustomVirtualStringTree = class(TVTAncestor)
298294 function DoIncrementalSearch (Node: PVirtualNode; const Text: string): Integer; override;
299295 procedure DoNewText (Node: PVirtualNode; Column: TColumnIndex; const Text: string); virtual ;
300296 procedure DoPaintNode (var PaintInfo: TVTPaintInfo); override;
301- procedure DoPaintText (Node: PVirtualNode; const Canvas: TCanvas; Column: TColumnIndex;
302- TextType: TVSTTextType); override;
303297 function DoShortenString (Canvas: TCanvas; Node: PVirtualNode; Column: TColumnIndex; const S: string; Width: TDimension;
304298 EllipsisWidth: TDimension = 0 ): string; virtual ;
305299 procedure DoTextDrawing (var PaintInfo: TVTPaintInfo; const Text: string; CellRect: TRect; DrawFormat: Cardinal); virtual ;
@@ -324,7 +318,6 @@ TCustomVirtualStringTree = class(TVTAncestor)
324318 property OnGetText: TVSTGetTextEvent read FOnGetText write FOnGetText;
325319 property OnGetCellText: TVSTGetCellTextEvent read fOnGetCellText write fOnGetCellText;
326320 property OnNewText: TVSTNewTextEvent read FOnNewText write FOnNewText;
327- property OnPaintText: TVTPaintText read FOnPaintText write FOnPaintText;
328321 property OnShortenString: TVSTShortenStringEvent read FOnShortenString write FOnShortenString;
329322 property OnMeasureTextWidth: TVTMeasureTextEvent read FOnMeasureTextWidth write FOnMeasureTextWidth;
330323 property OnMeasureTextHeight: TVTMeasureTextEvent read FOnMeasureTextHeight write FOnMeasureTextHeight;
@@ -1414,17 +1407,6 @@ procedure TCustomVirtualStringTree.DoPaintNode(var PaintInfo: TVTPaintInfo);
14141407
14151408// ----------------------------------------------------------------------------------------------------------------------
14161409
1417-
1418- procedure TCustomVirtualStringTree.DoPaintText (Node: PVirtualNode; const Canvas: TCanvas; Column: TColumnIndex;
1419- TextType: TVSTTextType);
1420-
1421- begin
1422- if Assigned(FOnPaintText) then
1423- FOnPaintText(Self, Canvas, Node, Column, TextType);
1424- end ;
1425-
1426- // ----------------------------------------------------------------------------------------------------------------------
1427-
14281410function TCustomVirtualStringTree.DoShortenString (Canvas: TCanvas; Node: PVirtualNode; Column: TColumnIndex;
14291411 const S: string; Width: TDimension; EllipsisWidth: TDimension = 0 ): string;
14301412
0 commit comments