Search found 9687 matches

by Sergey Tkachenko
Wed Apr 30, 2025 1:02 pm
Forum: Support
Topic: Deleting a range
Replies: 11
Views: 12025

Re: Deleting a range

The code supporting starting and ending codes in different cells is below.

This kind of selection (from the starting cell till the end of the row; then all cells in the rows between; then cells till the ending cell) is not natural for TRichViewEdit: TRichViewEdit selects cell that are inside the ...
by Sergey Tkachenko
Wed Apr 30, 2025 12:47 pm
Forum: Support
Topic: Deleting a range
Replies: 11
Views: 12025

Re: Deleting a range

The original code has a bug.
It's incorrect to compare tle1 and tle2.
If a new tle2 is created, tle1 is destroyed.
It is possible that the Delphi memory manager reuses a freed memory, so tle1 = tle2.

The comparison must be like this:

var ItemNoI, ItemNoF, OffsI, OffsF: Integer;
tle1, tle2 ...
by Sergey Tkachenko
Wed Apr 30, 2025 9:40 am
Forum: Support
Topic: Deleting a range
Replies: 11
Views: 12025

Re: Deleting a range

For example, if the cells are (2, 2) and (3,3).
Should it clear the cells in the (2, 3) and (3, 2)?
Or should it clear all cels in the row after (2, 2), and all cells in the row before (3, 3)?
by Sergey Tkachenko
Wed Apr 30, 2025 9:06 am
Forum: Support
Topic: Deleting a range
Replies: 11
Views: 12025

Re: Deleting a range

This code must do nothing is the words are in different cells.
The check "if tle1=tle2 then" is to ensure that the words are in the same cell.

The code for deleting content between two cells would be much more complicated.
What does "content between cells" mean? If the cells are in different rows ...
by Sergey Tkachenko
Tue Apr 29, 2025 12:48 pm
Forum: Support
Topic: Extra Space Added in Empty Lines in Markdown Component
Replies: 4
Views: 92536

Re: Extra Space Added in Empty Lines in Markdown Component

Sorry, it was not included in the last release.
But I've made these changes. If you want, I can send modified units to you by email.
They will be included in the next update.
by Sergey Tkachenko
Mon Apr 28, 2025 11:14 am
Forum: Support
Topic: Copy Image from Browser and Emojis and Paste to RichViewEdit
Replies: 1
Views: 283

Re: Copy Image from Browser and Emojis and Paste to RichViewEdit

1. Emojis are Unicode characters. When they are pasted in a VCL TRichView editor, they are displayed using a text color. Unfortunately, the text engine used by the VCL version of TRichView does not allow displaying color emojis. But the FireMonkey version (that uses either DirectX or Skia drawing ...
by Sergey Tkachenko
Mon Apr 28, 2025 10:21 am
Forum: Support
Topic: Too dark icons
Replies: 1
Views: 187

Re: Too dark icons

Open Project | Options.
The page Application | Manifest.
Make sure that "Manifest file" = "Auto Generate" and "Enable Runtime Themes" is checked.
by Sergey Tkachenko
Thu Apr 24, 2025 12:48 pm
Forum: ScaleRichView
Topic: Read ParaNo from cells
Replies: 7
Views: 4458

Re: Read ParaNo from cells

The main problem in this code is re-adding existing items. You take an existing item (using GetItem method) and add it in another place (using AddItemAsIs or AddItem).
You cannot do it. Items are owned by the document. If an item is inserted several times, when the document is freed, the item will ...
by Sergey Tkachenko
Wed Apr 23, 2025 2:17 pm
Forum: ScaleRichView
Topic: Read ParaNo from cells
Replies: 7
Views: 4458

Re: Read ParaNo from cells

You can attach a test project here, or send it to email richviewgmailcom.
Please make a compliable project, as simple as possible.
by Sergey Tkachenko
Wed Apr 23, 2025 11:49 am
Forum: ScaleRichView
Topic: Read ParaNo from cells
Replies: 7
Views: 4458

Re: Read ParaNo from cells

Each cell initially has an empty text item.
Call Cell.Clear before Cell.AddNL.
by Sergey Tkachenko
Wed Apr 23, 2025 11:24 am
Forum: Announcements
Topic: IDEInstaller v2.5
Replies: 0
Views: 3088

IDEInstaller v2.5

We've released our installer program as freeware with source code:
http://www.trichview.com/ideinstall/

It was updated to version 2.5.

This utility can be used by Delphi component developers to install their packages in Delphi and C++Builder IDE (from Delphi 5 and C++Builder 6 to RAD Studio 12 ...
by Sergey Tkachenko
Sat Apr 19, 2025 8:36 pm
Forum: Support
Topic: Customize MainMenu Items
Replies: 6
Views: 4852

Re: Customize MainMenu Items

Changing TRVAControlPanel.Language is not enough. You need to call additional code to update controls after changing TRVAControlPanel.Language.
In ActionTest demos, this additional code is in the form's Localize method.

First, this method calls RVA_LocalizeForm(Self) to update captions of all ...
by Sergey Tkachenko
Sat Apr 19, 2025 3:05 pm
Forum: Support
Topic: Customize MainMenu Items
Replies: 6
Views: 4852

Re: Customize MainMenu Items

1. As for the translation.

Some controls (menu items, toolbar buttons) are linked with actions (their Action property is assigned). When the application runs, their captions and hints are updated from actions, using TRVAControlPanel.Language. You cannot modify these texts in your application: you ...
by Sergey Tkachenko
Fri Apr 18, 2025 5:03 pm
Forum: ScaleRichView
Topic: Edit Header/Footer without Focus
Replies: 2
Views: 2191

Re: Edit Header/Footer without Focus

If you want to edit headers and footers using editing operations, activating editing is the only option.
But if you want to use viewer-style methods, you can use SRichViewEdit. Subdocuments[] property.
When modifying a subdocument, make sure that it is not currently edited. Otherwise, when the user ...
by Sergey Tkachenko
Thu Apr 17, 2025 5:39 pm
Forum: Announcements
Topic: TRichView 23.2 - Markdown in Clipboard
Replies: 4
Views: 3262

RAD Studio 12.3: 64-bit IDE

RAD Studio 12.3: 64-bit IDE

This update adds support for the 64-bit IDE introduced in RAD Studio 12.3. If the 64-bit IDE is available, the installer will automatically install the components into both the 64-bit and the classic 32-bit IDEs.

Support for the 64-bit IDE is available only when ...