Page 1 of 1

TRichView 20, ScaleRichView 11, ReportWorkshop 4

Posted: Thu Dec 23, 2021 7:53 am
by Sergey Tkachenko
We released new versions of our components: TRichView 20, ScaleRichView 11, ReportWorkshop 4.

Major changes since the last major update (TRichView 19, ScaleRichView 10, ReportWorkshop 3):

TRichView:
  • new FireMonkey version for Windows and macOS
  • support for Delphi and C++Builder 11 Alexandria
  • Markdown import
  • new selection drawing mode
  • new list numbering types
  • End-user help in RichViewActions
  • Equation objects can use both the free and the commercial version of Adit Math Engine
  • Functions for HTML from RTF de-encapsulation
ScaleRichView:
  • support for new features of TRichView
  • support for Delphi and C++Builder 11 Alexandria
  • improved zooming
  • shared TRVStyle properties
Report Workshop
  • support for new features of TRichView
  • support for Delphi and C++Builder 11 Alexandria
  • new date and time functions
  • new {$header} and {$footer} commands
Trial versions are available:
https://www.trichview.com/download/

This update is free for customers who ordered the components in 2020 and 2021
(also, VCL+LCL version of TRichView is free for customers who ordered TRichView in 2007 and before).

Previous version:
https://www.trichview.com/forums/viewto ... =6&t=10700

TRichView - semitransparent selection

Posted: Thu Dec 23, 2021 8:46 am
by Sergey Tkachenko
TRichView - semitransparent selection

By default, selection is drawn using properties of TRVStyle: SelColor for background, SelTextColor for text (and similar properties for displaying selection when focus shifts to another control).

classic-selection.jpg
classic-selection.jpg (145.05 KiB) Viewed 64517 times

Since this version, an alternative mode is implemented: semitransparent selection. It is activated if you define a partial selection opacity in SelOpacity property

new-selection.jpg
new-selection.jpg (137.35 KiB) Viewed 64517 times
By default, the classic selection mode is used in VCL, LCL, and FireMonkey versions.
However, a new option is added to FireMonkey version: rvoDefaultSelectionFill.
If set (default), the component searches for a brush resource named 'selection' in the linked FireMonkey style, and takes a selection color and an opacity from it.
By default, TRichView uses 'memostyle' that has a semitransparent selection brush in resources.
So TRIchView editor now looks consistent with FireMonkey TEdit and TMemo controls.

ScaleRichView: shared TRVStyle properties and zooming mode

Posted: Thu Dec 23, 2021 8:57 am
by Sergey Tkachenko
ScaleRichView: shared TRVStyle properties

In ScaleRichView, WYSIWYG editor control (TSRichViewEdit) has several internal editors (for editing the main document, a header, a footer, footnotes/endnotes/text boxes). Each internal editor is linked to its own internal TRVStyle control.
Before this version, these TRVStyle controls were independent (they had only one shared property: a collection of named styles StyleTemplates).
Since this version, all properties of these TRVStyle controls are shared (except for properties representing text, paragraph and list attributes).
It simplifies changes. For example, if you set SRichViewEdit.RichViewEdit.Style.SelOpacity, this change affects all parts of the editor.

ScaleRichView: zooming mode

Depending on property settings, zooming in TSRichViewEdit may be applied either to pages (print and side-to side view modes) or to document content (web mode and read-mode).
Zooming pages is very fast, but zooming content may require some time. Because of this, for large documents, fast multiple changes of ZoomPercent may be a problem.

Since this version, in slow zooming modes, when zooming is initiated by a mouse wheel or a track bar on a zooming panel, the editor enters in a special zooming mode. The zooming percent is displayed using ZoomFont. ZoomPercent is assigned when the user finishes using a mouse wheel / trackbar.

zooming-mode.png
zooming-mode.png (68.36 KiB) Viewed 64517 times

Report Workshop: header and footer commands

Posted: Thu Dec 23, 2021 9:25 am
by Sergey Tkachenko
Report Workshop: header and footer commands

In Report Workshop, when a data query was applied to a document, it was applied to the whole document.
If you wanted to add some fixed part at the beginning and/or the end of the document, the only solution was applying a data query not to a document, but to a report table.

Since this version, this limitation is removed. You can define a report header and/or footer. A data query is applied to content between them.
They are defined using {$header} and {$footer} commands.

header-footer-template.png
header-footer-template.png (29.87 KiB) Viewed 64503 times
Report template
header-footer-report.png
header-footer-report.png (71.8 KiB) Viewed 64503 times
Report result

PS: Report header/footer should not be confused with page header/footer.
Report header/footer is a part at the beginning/end of the document which is not repeated when a document data query is applied.
Page header/footer is an additional document which is displayed on top/bottom of each page.

FireMonkey version

Posted: Thu Dec 23, 2021 9:32 am
by Sergey Tkachenko
New in FireMonkey version

In this update, the following additional components were ported to FireMonkey (Windows and macOS):
  • RvHtmlImporter (allows loading HTML files and streams)
  • RichViewXML (allows saving and loading TRichView content as XML)
Limitations in this version:
  • RvHtmlImporter: HTML pasting from the Clipboard is supported only in Windows
  • RichViewXML: TImageList is not supported in FireMonkey version (including bullets and hotspot items, and image list types of paragraph lists)
These limitations will be removed in future updates.

TRichView 20.0.1 ScaleRichView 11.0.2

Posted: Mon Jan 17, 2022 5:09 pm
by Sergey Tkachenko
TRichView 20.0.1 RichViewActions 10.1, ScaleRichView 11.0.2

We've updated TRichView, RichViewActions and ScaleRichView.
This is mainly a maintenance release, it contains several fixes and tweaks.

New features of TRichView: saving vertical alignment of contents of text boxes in RTF

New features of RichViewActions:
  • For tables and horizontal lines, an object properties dialog contains "Default" checkbox, allowing to use entered values for new tables/lines. In this update, we added properties that allow controlling a state of this checbox
  • A new event (TRVAControlPanel.OnChoosePicture) allows implementing your own dialog for choosing a picture (instead of using TOpenPictureDialog). Ideas: you can implement image selection from a gallery, from web, from a scanner.
Updated translations of RichViewActions and ScaleRichView: Hungarian (thanks to Bogáncs Sándor)

TRichView 20.0.2 ScaleRichView 11.1

Posted: Fri Jan 28, 2022 10:28 am
by Sergey Tkachenko
TRichView 20.0.2 ScaleRichView 11.1

We've updated TRichView and ScaleRichView.

Again, this is mainly a maintenance release, it contains several fixes and optimizations.

However, there is a new feature (that should be implemented a long time ago): support of VCL themes in TSRVScrollBar component. This scrollbar can be used as a separate component (both inside a form and inside a document), and it is used as scrollbars for TSRichViewEdit - WYSIWYG text editor component.
Other changes were made to improve support of VCL themes in ScaleRichView.
VCLStyles-ScaleRichView.png
VCLStyles-ScaleRichView.png (103.9 KiB) Viewed 62981 times
Note 1: TSRVScrollBar may have different appearance:
  • it may use ScaleRichView skins defined in TSRVSkinManager component
  • if not skinned, it may have a modern simple appearance / classic appearance (SRVControlStyle property)
  • in classic appearance, VCL and Windows themes may be applied (UseXPThemes property)
  • if themes are not applied, it has a classic appearance, that can be 3D or flat (Flat property)
  • you can use events to draw it yourself
Note 2: VCL themes are applied to TSRichViewEdit by default, but only to user interface parts. To apply themes to a document itself, ViewProperty.UseVCLThemes must be True.

TRichView 20.1 ScaleRichView 11.2

Posted: Tue Mar 15, 2022 12:09 pm
by Sergey Tkachenko
TRichView 20.1 ScaleRichView 11.2

We've updated TRichView and ScaleRichView.

Again, this is mainly a maintenance release, but with some new features.

1. New IgnoreContentHeight property for table cells. If True, only height specified in BestHeight property is used, height of content is ignored.
This option is supported in RichViewActions UI (cell height "exactly"/"at least"):
ExactHeight.png
ExactHeight.png (9.17 KiB) Viewed 61756 times
This option can be saved and loaded in RVF, RTF, and DocX files.
In the previous version, it was possible to set this option only for the whole table (without support in RichViewActions UI, and without DocX and RTF support).

2. In ScaleRichView, an option to print metafiles as bitmaps is added. It may be useful for PDF printers or libraries.

TRichView 20.2 - update checker

Posted: Tue May 10, 2022 5:21 pm
by Sergey Tkachenko
TRichView 20.2 ScaleRichView 11.2.1, Report Workshop 4.0.2

This update fixes several bugs and introduces a design-time update checker.
This is a design-time tool that can check for new available TRichView, ScaleRichView, and ReportWorkshop versions. An Internet connection is required (otherwise it fails).
This version checker is included in VCL and LCL versions.

When Delphi/Lazarus IDE starts the first time after installing TRichView, a version checker window pops up.
When you click "Check for update", the tool connects to the TRichView web server to get the last available version number.

trichview-update-check.png
trichview-update-check.png (20.37 KiB) Viewed 60974 times

If a new version is found, the tools suggests to download it.
If ScaleRichView and ReportWorkshop are installed, the tool also checks for their updates
(but only for the full version of TRichView; it does not make sense to check for updates of ScaleRichView and ReportWorkshop in the trial installer, because it includes all the components in a single setup).

If you leave "check for updates on start" checked, the tool will check for updates when Delphi/Lazarus IDE starts (but no more than once a day). This window will be displayed only if a new version is found, so it will not annoy you unnecessarily.

If you disabled checking on start, you can always check manually (right click any TRichView component and click "Check for Update" in the context menu).

This tool does not upload any data on TRichView server, only the fact of checking and your IP address can be found in the server logs.

I am considering closing mailing lists for registered users, and this tool will replace them.