|
New in version 1.5.4 |
Top Previous Next |
|
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. 3. New parameter New parameter of SaveCSS/SaveCSSToStream. Please use empty set ([]) for it. New feature: RTF Import
New feature: saving text and paragraph styles in RVF
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:
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
Improved:
|