Search found 9599 matches

by Sergey Tkachenko
Sat Feb 15, 2025 2:49 pm
Forum: Support
Topic: Feature request: copy/paste as markdown
Replies: 2
Views: 19036

Re: Feature request: copy/paste as markdown

This is a good idea.
In my working version, added:
- new method TRichView.CopyMarkdown
- new method TRichViewEdit.PasteMarkdown.
- Markdown option in TrvActionPasteSpecial.

It will be included in the next update,

Please note that the Clipboard does not have a special Markdown format, so when ...
by Sergey Tkachenko
Thu Feb 13, 2025 1:31 pm
Forum: Support
Topic: URLScan and TDBRichView ?
Replies: 5
Views: 21909

Re: URLScan and TDBRichView ?

For TcxTRichViewEdit, use Properties.OnLoadValue event.
by Sergey Tkachenko
Wed Feb 12, 2025 2:31 pm
Forum: Announcements
Topic: TRichView 23.1 - RichViewActions for Lazarus for Linux
Replies: 3
Views: 26427

Re: TRichView 23.1 - RichViewActions for Lazarus for Linux

Other changes

Package structure for Lazarus

The package structure for Lazarus has been changed so that each package is in its own folder. This change is necessary to ensure that Lazarus recompiles the modules when needed. While having multiple packages in the same folder does not cause ...
by Sergey Tkachenko
Wed Feb 12, 2025 2:29 pm
Forum: Announcements
Topic: TRichView 23.1 - RichViewActions for Lazarus for Linux
Replies: 3
Views: 26427

Redesigned dialog windows

Redesigned dialog windows

To ensure that dialog windows look good on both Windows and Linux, they have been redesigned.

The main changes include:

Increased spacing between controls, as edits and combo boxes in Lazarus for Linux have greater height.
More precise positioning of ...
by Sergey Tkachenko
Wed Feb 12, 2025 2:27 pm
Forum: Announcements
Topic: TRichView 23.1 - RichViewActions for Lazarus for Linux
Replies: 3
Views: 26427

RichViewActions for Lazarus for Linux

Lazarus for Linux

RichViewAction have been ported to Lazarus for Linux.

All dialog windows look almost the same as in the Windows version. The differences are:

The order of the OK and Cancel buttons has been adjusted to match the typical layout for Linux users.
The font properties dialog now ...
by Sergey Tkachenko
Wed Feb 12, 2025 2:23 pm
Forum: Announcements
Topic: TRichView 23.1 - RichViewActions for Lazarus for Linux
Replies: 3
Views: 26427

TRichView 23.1 - RichViewActions for Lazarus for Linux

We have released TRichView 23.1 and updates of related components

The main new feature in this update is the porting of RichViewActions to Lazarus for Linux.

RichViewActions is a set of components and actions designed to create a user interface for a word processor based on the TRichView editor ...
by Sergey Tkachenko
Wed Feb 12, 2025 2:08 pm
Forum: Announcements
Topic: TRichView and ReportBuilder 23
Replies: 0
Views: 1910

TRichView and ReportBuilder 23

TRichView can be used to add advanced rich text objects to ReportBuilder reports.
ReportBuilder v23 has been released recently.
The existing TRichView+RB code is compatible with ReportBuilder v23, with one exception: PDF export. An access violation error occurs when you attempt to export a PDF file ...
by Sergey Tkachenko
Tue Feb 11, 2025 4:51 pm
Forum: Support
Topic: Out of memory in MakeDocumentFromStream
Replies: 5
Views: 16498

Re: Out of memory in MakeDocumentFromStream

Fixed in TRichView v23.1
by Sergey Tkachenko
Tue Feb 11, 2025 3:37 pm
Forum: Support
Topic: URLScan and TDBRichView ?
Replies: 5
Views: 21909

Re: URLScan and TDBRichView ?

Use OnLoadDocument event.
This event occurs after loading a document from DB.
by Sergey Tkachenko
Tue Feb 11, 2025 12:24 pm
Forum: Support
Topic: URLScan and TDBRichView ?
Replies: 5
Views: 21909

Re: URLScan and TDBRichView ?

This demo includes URLScan.pas unit containing all the important functions that are used in this demo.
ScanURLs() and ClearHypertext() work for TRichView, TRichViewEdit, TDBRichView. TDBRichViewEdit.
DetectURL(), TerminateHyperlink(), PasteTextWithURLs() work for TRichViewEdit and TDBRichViewEdit.
by Sergey Tkachenko
Mon Feb 10, 2025 9:38 am
Forum: Support
Topic: TrichViewEdit : ChangeSelectedTextColor best code ?
Replies: 3
Views: 28071

Re: TrichViewEdit : ChangeSelectedTextColor best code ?

Currently, there are only two ways to apply changes to selected text: (1) using TrvActionFontEx from RichViewActions (2) using ApplyStyleConversion method + OnStyleConversion event.

I plan to add a new component soon to simplify editing operations without using actions, but it is not ready yet ...
by Sergey Tkachenko
Sun Feb 09, 2025 2:45 pm
Forum: Support
Topic: Scale in TRichView (Pictures in Tables)
Replies: 4
Views: 16731

Re: Scale in TRichView (Pictures in Tables)

Sorry, TRichView does not know the final width of document on the step of document creation. It can be calculated only after formatting.
And, for complex tables, it's hard to predict how the image width will affect the table width.

It is possible to do the following.
Format the document, then check ...
by Sergey Tkachenko
Sat Feb 08, 2025 1:44 pm
Forum: Support
Topic: Scale in TRichView (Pictures in Tables)
Replies: 4
Views: 16731

Re: Scale in TRichView (Pictures in Tables)

What do you want to do exactly?

Do I understand correctly:
You define some width value W.
If the image is inside the root table, its width must not exceed (W / table.ColCount)?
If it is in the nested table, its width must not exceed W / (roottable.ColCount * nestedtable.ColCount)?
by Sergey Tkachenko
Wed Jan 29, 2025 4:00 pm
Forum: Support
Topic: TrichViewEdit : ChangeSelectedTextColor best code ?
Replies: 3
Views: 28071

Re: TrichViewEdit : ChangeSelectedTextColor best code ?

ApplyTextStyle applies the same font attributes to the selection (including font name, size, etc.).
If you want to change only one property (such as a text color) and do not want to change other properties, you need to use ApplyStyleConversion method and OnStyleConversion event.
See the demo in ...