Die aktuelle Version ist 1.3d (Info & Quelltext).

Download: rtflabel_1.3d.zip (110.853 Bytes, vom 15.07.2010 23:24:17)


Die Komponente TRtfLabel ist ein Label, das formatierten RTF-Text darstellen kann.

Unterstützte Features sind u.a.:

  • vollständige RTF-Formatierung wie WordPad,
  • eingebettete Bilder und OLE-Objekte,
  • transparenter Hintergrund,
  • Zooming zwischen 2% und 6400% und
  • automatische Größenanpassung an den Inhalt.

Das folgende Bild zeigt oben den RTF-Quelltext, also den Inhalt der Eigenschaft "Caption" und unten das Resultat - auf transparentem Hintergrund formatierten RTF-Text.

TRtfLabel mit Quell-RTF und formatiertem Inhalt

Die Komponente kann ihre Größe automatisch an den Inhalt anpassen. Grafiken und OLE-Objekt sind ebenfalls möglich.

In der Version 1.3 ist außerdem eine Unit hinzugekommen, um formatierten RTF-Text in einen Canvas auszugeben (wie DrawText).

Lizenz: M.I.T. (siehe Quelltext bzw. die beigefügte Datei "README.de.txt")


RtfLabel package

VCL component using the windowless ITextServices interface of the windows
richedit control version 3.0+ to implement a label that displays rich text.

Supported features include:
  * full RTF formatting like WordPad,
  * embedded pictures and OLE objects,
  * transparent background,
  * zooming from 2% to 6400%, and
  * automatic sizing to fit the content.

Version 1.3d - always find the most current version at

Copyright (C) 2006-2009 Volker Siebert <flocke@vssd.de>
All rights reserved.

License: M.I.T. (see source resp. the included file "README.txt")


2009-11-02: Version 1.3d

  • Added support for Delphi 2007 and 2009.
  • Fixed bug for possible endless resize loop with right aligned text.
  • Internal: added `CreateEx´ to `TTextServices´.

2007-02-28: Version 1.3c

  • Full support for Delphi 3 and 4 added, now all files (even the samples) are fully compatible to all Delphi versions since Delphi 3.

2007-02-27: Version 1.3b

  • Added support for Delphi 3, 5, and 6 (though Delphi 3 requires some manual action). Thanks to Lannes for the help with Delphi 3 ;)
  • As promised: installation packages ;)

2006-10-19: Version 1.3a

  • Changed the parameter type of `DrawRichText´ from `TTextFormat´ to `TRtfTextFormat´, because `TTextFormat´ is not known to Delphi versions prior to 2005. NOTE: The members' names have changed from `tf...´ to `rtf...´, so you will get errors when compiling old sources.

2006-08-17: Version 1.3

  • Added a property editor for the `Caption´ property.
  • Fixed a serious bug. RICHED20.DLL crashed on TxDraw with embedded pictures or objects.
  • Changed component palette name to 'Flocke'.

2006-08-12: Version 1.2 (internal)

  • Added unit `DrawRichText.pas´, in case you don't need a label but just want to paint RTF onto some canvas. Also added a sample application for that procedure.
  • New property `Zoom´ (guess what it does).
  • New event `OnResize´ (guess when it's called).
  • Internal: public property `RichEditVersion´.
  • Internal: protected property `TextServices´.
  • Internal: Turned off AutoURLDetect.
  • Improved checks and painting.
  • Corrected fix from 1.1a.

2006-05-31: Version 1.1a

  • Added missing call to TxSendMessage with EM_SETTYPOGRAPHYOPTIONS / TO_ADVANCEDTYPOGRAPHY (thanks to K. Kratzenstein).

2006-04-14: Version 1.1

  • `Padding´ did not work without `WordWrap´, especially with right-aligned paragraphs which caused an infinite loop. I falsely assumed the requested size does not include the view inset - it does, but only for the horizontal part.
  • Changed inheritance from `TInterfacedObject´ to `TObject´ in `DelphiTextServ.pas´, resolving the cross-referencing between the interfaces manually.
  • Changed two prototypes in `TextServ.pas´ to better match their API counterparts.

2006-04-01: Version 1.0a

  • Added the `Document´ interface property to TRtfLabel.

2006-03-31: Version 1.0

  • First public release.

Alle Versionen

Name   Version   Größe   Datum / Uhrzeit
RtfLabel   1.3d   110.853   15.07.2010 23:24:17
RtfLabel   1.3c   109.961   06.03.2007 14:49:11
RtfLabel   1.3b   99.124   27.02.2007 16:32:04
RtfLabel   1.3a   72.796   19.10.2006 17:17:15

Zusätzliche Suchbegriffe

RtfLabel, TRtfLabel, RichEdit, RTF, Label, windowless, thiscall, ITextHost, ITextServices, ITextDocument, msftedit.dll, riched30.dll, richole.h, TextServ.h, TOM.h.

Flocke's Garage
Valid HTML 4.01 Transitional Valid CSS!
(C) 2005-2018 Volker Siebert.
Creative Commons-LizenzvertragDer gesamte Inhalt dieser Webseite steht unter einer Creative Commons-Lizenz (sofern nicht anders angegeben).