Changes after version 13

Top  Previous  Next

Compatibility issues

Item tags are strings, they are not integers any more. The default tag value is changed from 0 to ''. If you used tags in an integer mode, use StrToInt and IntToStr when calling TRichView methods returning and accepting tags. Not only methods having Tag parameters, but some events are affected (OnReadHyperlink, OnRVControlNeeded, OnRVFPictureNeeded). In existing projects, change the types of Tag parameters of these events from Integer to TRVTag manually. RVOLDTAGS can be defined in RV_Defs.inc to make tags integers (not recommended).

For rotated cells, coordinates stored in DrawItems (a low-level undocumented property) do not define the position of items on the screen directly.

TRichView.LoadText, LoadTextFromStream, SaveText, SaveTextToStream, TRichViewEdit.InsertTextFromFile have a new parameter. This parameter is optional, but in old versions of C++Builder, it must be added explicitly in the code (use CP_ACP for compatibility).

A text search behavior can be modified with the new "smart start" option (see TRichView.SearchText and TRichViewEdit.SearchText). GetRVSearchOptions and GetRVESearchOptions include this option by default, so it may affect existing projects.

Changes in Unicode line wrapping procedure: '.' , '!', ',', ';' characters are treated as alphabetic characters now (because they are often used in phrases like '.Net' or in URLs).

Rotation

Table cells can be rotated by 90°, 180°, or 270°.

A new method returning item coordinates: GetItemCoordsEx; it takes cell rotation into account.

String tags

Since version 13.2, item tags are strings (Unicode for Delphi 2009 or newer, ANSI for older versions of Delphi). No more typecasting from integer to PChar!

64-bit

The both 32-bit and 64-bit compilers are supported in RAD Studio XE2.

Note: TRVOfficeConverter can be compiled in 64-bit application, but lists of converters will be empty (because converters are 32-bit DLLs and cannot be used in 64-bit applications).

Custom styles

The components support custom styles introduced in RAD Studio XE2:

all visual components display scrollbars and borders according to styles;

TRVPrintPreview adjusts its colors (background, page border, shadow) according to the current style.

Text files

A new optional parameter for TRichView.LoadText, LoadTextFromStream, SaveText, SaveTextToStream, TRichViewEdit.InsertTextFromFile: CodePage. It allows to specify a code page of the file (this parameter is used only for Unicode text in a document; for ANSI text, it is ignored).

Drag and drop: when accepting text files, TRichViewEdit detects their encoding (UTF16, UTF8 or ANSI).

Other changes

Better processing of  Up  and  Down  keys when moving in and out table cells.

New event of TRichViewEdit: OnCheckStickingItems event allows to stick items together.

New typed constant: RichViewDoNotMergeNumbering.

"Smart start" search option for TRichView.SearchText and TRichViewEdit.SearchText.


RichView © Sergey Tkachenko