<< Click to display table of contents >> Lazarus |
TRichView components can be used in Lazarus.
The following platforms are supported:
▪Windows (32-bit and 64-bit)
▪Linux (GTK2 widgetset + Cairo canvas for printing)
Currently, the following sets of components are ported to Lazarus:
▪TRichView
▪RvHtmlImporter
▪RichViewXML
▪ASpell parser (Windows only)
▪HunSpell parser (Windows only)
▪VirtualTree support (Windows only).
TRVOfficeConverter and TRVASpell use 32-bit DLL, so they can be only in Win32 applications.
Common limitations
The following functions are not available in Lazarus:
▪gestures (text selection and print preview zooming with fingers)
▪mouse panning (scrolling by clicking a middle mouse button and then moving the mouse)
▪gif and metafile images (unless you find Lazarus-compatible graphic components that is able to display, load and save these formats)
▪when dragging an image from TRichView, it is not provided as a bitmap (however, TRichViewEdit still accepts bitmaps dragged into it)
▪LiveBindings
Additional Linux limitations
The following functions are not available in Lazarus for Linux:
▪advanced character properties (horizontal scaling, character spacing)
▪distribute alignment for paragraphs (justification by increasing character spacing)
▪cell rotation in tables
▪drag and drop
A quality of print preview is low in Lazarus for Linux. It can be improved by assigning TRVPrintPreview.CachePageImage = True.
UTF-16 strings
Most methods and properties in the components have TRVUnicodeString parameters, which is defined as UnicodeString in Lazarus. These string contain Unicode (UTF-16) text.
ANSI strings
Parameters in ***A methods have TRVAnsiString parameters, which is defined as AnsiString in Lazarus. They are treated as ANSI string (not UTF-8!).
These methods include:
▪in TRichView: AddNLA, AddTextNLA, GetItemTextA, GetSelTextA, GetWordAtA, SearchTextA, SetItemTextA
▪in TRichViewEdit: GetCurrentItemTextA, InsertStringATag, InsertTextA, SearchTextA, SetCurrentItemTextA, SetItemTextEdA
UTF-8 strings
Some methods have String parameters. They are treated as UTF-8 in Lazarus
These methods include:
▪in TRichView: AddFmt, AddNL, AddTextNL, GetItemText, GetSelText, GetWordAt, SearchText, SetItemText
▪in TRichViewEdit: GetCurrentItemText, InsertStringTag, InsertText, SearchText, SetCurrentItemText, SetItemTextEd
TRichView demo projects for Lazarus are in:
▪<TRichView Dir>\TRichView\Demos\Lazarus\
Some add-ins and additional components have Lazarus demo projects as well:
▪<TRichView Dir>\TRichView\Demos\Addins\BlendBitmap\Demo\Lazarus\
▪<TRichView Dir>\TRichView\Demos\Addins\ComboItem\Demo\Lazarus\
▪<TRichView Dir>\RvHtmlImporter\Demos\Lazarus\
▪<TRichView Dir>\ThirdParty\ASpell\Demos\Lazarus\
▪<TRichView Dir>\ThirdParty\HunSpell\Demos\Lazarus\