Page 1 of 1

TRichView in VirtualTree

Posted: Thu May 14, 2020 12:14 pm
by Sergey Tkachenko
In the today's update, we added Virtual TreeView support to TRichView.

Virtual TreeView is an open source treeview control. It has many advanced features, it is fast and memory-efficient.
It can be downloaded from: https://github.com/Virtual-TreeView/Virtual-TreeView

The original Virtual TreeView includes two components:
- TVirtualDrawTree (owner-drawn tree)
- TVirtualStringTree (a tree with text nodes)

TRichView allows adding rich text content to trees. There are two ways for doing it:
- in TVirtualDrawTree
- in the new component, TRVVirtualStringTree (inherited from TVirtualStringTree).

Using TRVVirtualStringTree is simpler. It allows having both plain-text and rich-text columns.

The following features are supported:
  • displaying multiline rich text content (stored as RVF)
  • ability to have more than one rich text column
  • inplace editing
  • calculating item heights (and updating them even while editing)
  • saving/loading rich text content when tree nodes are saved/loaded
  • VCL themes
  • receiving a plain text representation of rich text content (for example, it is useful for sorting)
In the screenshots below, the first column is a plain text column, the second column in a rich text column (managed by TRichView).
RVVirtualStringTree.png
RVVirtualStringTree.png (99.29 KiB) Viewed 52432 times
RVVirtualStringTreeThemed.png
RVVirtualStringTreeThemed.png (107.22 KiB) Viewed 52432 times
TRichView setup includes source code of TRichView+VirtualTree integration (both in the full and the trial versions of TRichView).
It can be found in <TRichView Dir>\ThirdParty\VirtualTree\ folder.
This package is installed by the Setup, if VirtualTree is already installed.
There are two demo projects available. They show how to use TVirtualDrawTree and TRVVirtualStringTree.

The current version supports only Delphi and C++Builder (RAD Studio XE3 and newer). We plan adding Lazarus support in future updates.

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

Translations

Posted: Thu May 14, 2020 12:27 pm
by Sergey Tkachenko
In this update, the following UI translations are updated for Report Workshop:
- Catalan
- Danish
- German
- Spanish.
Thanks to Josep Mas i Dedeu, Kurt Bilde, Ruediger Kabbasch, Raúl Izquierdo.

TRichView in VirtualTree: update

Posted: Sun May 17, 2020 9:07 pm
by Sergey Tkachenko
A new version has been uploaded.

1)
In this update, TRichView supports VirtualTree in Lazarus as well.
In Lazarus, VirtualTree is installed by default, so you do not need to install it specially.
Some small corrections were made; an icon was added for TRVVirtualStringTree component.

2)
The following UI translations are updated for Report Workshop and RichViewActions:
- Chinese (both simplified and traditional)
- Japanese
- Turkish
- Ukrainian.
Thanks to Zhiyuan Wang, Ertan Küçükogl, Sergey Kovbasa.

Re: TRichView in VirtualTree

Posted: Tue Mar 15, 2022 7:35 pm
by Sergey Tkachenko
In TRichView 20.1, a VirtualTree integration was updated.

For Delphi, it supports the new version of VirtualTree (that can be downloaded, for example, from GetIt in Delphi 11). A support for older version of VirtualTree can be activated by commenting a compiler $define in the include file.

For Lazarus, it supports VirtualTree that is installed in Lazarus 2.x by default (it has "laz." in unit and package names).