Page 1 of 1

TRichView 18.5 - smooth scrolling

Posted: Thu Jul 02, 2020 12:39 pm
by Sergey Tkachenko
We've released TRichView 18.5.

A trial version is available: https://www.trichview.com/download
A full version can be found in the protected section of this forum (or old setups can check for updates and download new versions).

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

Smooth scrolling

Posted: Thu Jul 02, 2020 12:50 pm
by Sergey Tkachenko
Smooth scrolling

A new optional SmoothScroll parameter is added to the methods that scrolls TRichView and ScaleRichView editors.
For TRichView, it is ScrollTo method.
For ScaleRichView, the methods are: EditNote, ReturnToNote, ScrollToItem, ScrollToCaret, ScrollCaretToCenter.
To maintain compatibility, this parameter is False by default.
The default smooth scrolling duration is 0.3 of a second.

RichViewActions use smooth scrolling effects actively:
- both for TRichView and ScaleRichView, the actions use a smooth scrolling to the bookmark (checkpoint)
- for ScaleRichView, the actions use a smooth scrolling to notes and text boxes (and back), to headers and footers (and back)

This video shows smooth scrolling in ScaleRichView:

Text search

Posted: Thu Jul 02, 2020 12:57 pm
by Sergey Tkachenko
Text search

A new event is added to TRichView: OnTextFound.
It is called as a result of SearchText method.

Possible applications for this event:
  • Searching in unformatted documents. Sometimes you just need to know if a document contains the specified text. A selection requires a formatted document; so, if you forbid selection, you can search in unformatted text. This is especially useful for searching in multiple documents.
  • Implementing additional search conditions that you can verify in this event. For example, you can search only in text that has specific attributes.

Localization

Posted: Thu Jul 02, 2020 1:01 pm
by Sergey Tkachenko
Localization

Updated UI translations:
  • Hungarian (ReportWorkshop messages are updated, thanks to Bógáncs Sándor)
  • Lithuanian (RichViewActions messages are updated, thanks to Marius Žemaitis)
  • Thai (RichViewActions and ScaleRichView messages are updated; Report Workshop is translated)