New in version 1.5.4

<< Click to display table of contents >>

New in version 1.5.4

Compatibility issues

1. Changed types in events. Important (please read before installing the update!):

Types of parameters were changed in some events: "TRichView" was changed to "TCustomRichView", "TRichViewEdit" to "TCustomRichViewEdit".

After installing, open all forms containing RichView or RichViewEdit, and modify declarations of event handlers: change "TRichView" to "TCustomRichView", "TRichViewEdit" to "TCustomRichViewEdit". You must do it manually!

(This is one-time change that is required only for projects created with older version of the components)

For example, for TRichView.OnRVMouseDown

procedure TForm1.RichView1RVMouseDown(

                Sender: TRichView;

                Button: TMouseButton;

                Shift: TShiftState;

                ItemNo, X, Y: Integer);

begin

...

end;

must be changed to

procedure TForm1.RichView1RVMouseDown(

                Sender: TCustomRichView;

                Button: TMouseButton;

                Shift: TShiftState;

                ItemNo, X, Y: Integer);

begin

...

end;

Sorry for inconvenience.

2. Changed component hierarchy

TRichViewEdit, TDBRichView, TDBRichViewEdit are not descendants of TRichView any more. All of them (and TRichView itself) are descendants of TCustomRichView.

TDBRichViewEdit is not a descendant of TRichViewEdit any more. Both them are descendants of TCustomRichViewEdit.

See new scheme of hierarchy.

3. New parameter

New parameter of SaveCSS/SaveCSSToStream. Please use empty set ([]) for it.

New feature: RTF Import

▪TRichView.LoadRTF;

▪TRichView.LoadRTFFromStream;

▪TRichViewEdit.InsertRTFFromFileEd;

▪TRichViewEdit.InsertRTFFromStreamEd;

▪TRichViewEdit.PasteRTF;

▪TRichViewEdit.CanPasteRTF;

▪and property TRichView.RTFReadProperties.

New feature: saving text and paragraph styles in RVF

▪New rvfoSaveTextStyles and rvfoSaveParaStyles RVFOptions

▪TRichView.RVFTextStylesReadMode;

▪TRichView.RVFParaStylesReadMode;

▪Related: TRichView.DeleteUnusedStyles.

New feature: hot pictures

Hot pictures are the same as normal pictures, but they are also hypertext jumps.

New methods: AddHotPicture, AddHotPictureTag, InsertHotPicture.

Old methods (GetPictureInfo, SetPictureInfo, GetCurrentPictureInfo, SetCurrentPictureInfo, SetPictureInfoEd) now work with both pictures and hot pictures.

New properties for text and paragraph formatting:

▪TFontInfo.StyleEx (new option – rvfsAllCaps);

▪TFontInfo.CharScale;

▪TParaInfo.LineSpacing;

▪TParaInfo.LineSpacingType;

▪TParaInfo.Options.

New feature: Tab navigation through links and inserted controls

TRichView.TabNavigation property;

TRichView.GetFocusedItem method.

New feature: Proportional resizing of controls in documents

RichView now can resize controls depending on document width.

Let ItemNo - index of control item (rvsComponent).

var Item: TRVControlItemInfo; 

  ...

Item := RichView.GetItem(ItemNo) as TRVControlItemInfo;

Item.PercentWidth := 50; // 50% of document width (minus paragraph indents)

Effect will be after reformatting.

Known problem: such controls may not work properly in paragraphs with word-wrapping turned off.

Miscellaneous

▪OnCaretMove

▪GetLastCheckpoint, GetPrevCheckpoint

▪two new possible values of Direction parameter of OnCaretGetOut

▪TRVStyle.ParaStyles.FindStyleWithAlignment and FindSuchStyle

▪"whole word" option for TRichView.SearchText and TRichViewEdit.SearchText (thanks to Louis Kessler)

Improved:

▪support of third party graphic classes

▪RTF export

▪HTML export: SaveHTML now retains right and justify alignments.