Search found 9736 matches

by Sergey Tkachenko
Mon May 05, 2025 4:10 pm
Forum: Support
Topic: cmbStyles appears empty
Replies: 14
Views: 83910

Re: cmbStyles appears empty

TRVStyleTemplateComboBox must include all styles.
But some of them may be hidden initially.
See https://www.trichview.com/help-actions/ ... styles.htm
by Sergey Tkachenko
Mon May 05, 2025 1:21 pm
Forum: Support
Topic: cmbStyles appears empty
Replies: 14
Views: 83910

Re: cmbStyles appears empty

As for the initial display, when the application starts, call
rvActionNew.ExecuteTarget(RichViewEdit);

This command associates the editor with an unsaved file, and (if RichViewEdit.UseStyleTemplates = True) applies rvActionNew.StyleTemplates to the empty document, and updates cmbStyles.

Please ...
by Sergey Tkachenko
Mon May 05, 2025 1:15 pm
Forum: Support
Topic: cmbStyles appears empty
Replies: 14
Views: 83910

Re: cmbStyles appears empty

Did you assign RichViewEdit.UseStyleTemplates = True?

When do you want to add styles?
If you want to define collections of styles for new documents, edit rvActionNew.StyleTemplates collection.

A general information about named styles in TRichView is here: https://www.trichview.com/forums ...
by Sergey Tkachenko
Mon May 05, 2025 11:57 am
Forum: Support
Topic: Compile fails on RichViewTextItemClass not found
Replies: 1
Views: 26555

Re: Compile fails on RichViewTextItemClass not found

Change RichViewTextItemClass to RVItemFactory.TextItemClass.

See https://www.trichview.com/help/new_in_version_24.html
by Sergey Tkachenko
Wed Apr 30, 2025 1:02 pm
Forum: Support
Topic: Deleting a range
Replies: 12
Views: 74184

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: 12
Views: 74184

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: 12
Views: 74184

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: 12
Views: 74184

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: 5
Views: 131229

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: 28290

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: 27840

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: 155675

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: 155675

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: 155675

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: 114611

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 ...