Search found 9701 matches

by Sergey Tkachenko
Mon May 19, 2025 9:15 pm
Forum: Support
Topic: Poll: Revised background - multiple images?
Replies: 1
Views: 4312

Re: Poll: Revised background - multiple images?

This is a screenshot of an application that I use to test new background features.

background-test.png
background-test.png (37.91 KiB) Viewed 2048 times

Probably, it will be included in TRichView demo projects.
As you can see, the parameters are the same as in HTML/CSS.
Background compatibility will be maintained.
by Sergey Tkachenko
Sat May 17, 2025 7:22 pm
Forum: Support
Topic: Poll: Revised background - multiple images?
Replies: 1
Views: 4312

Poll: Revised background - multiple images?

I'm working on redesigning the background customization features in the component. The new background system will support almost all the positioning, scaling, and repeating options for background images available in HTML/CSS. I have a question: how important would it be to support multiple ...
by Sergey Tkachenko
Mon May 12, 2025 8:07 am
Forum: Support
Topic: How to handle very large images efficiently?
Replies: 1
Views: 7717

Re: How to handle very large images efficiently?

TRichViewEdit automatically caches scaled copies of images (in VCL and Lazarus version), so scaled images must be displayed fast after the first redrawing.
There is no RVStyle.BitmapCache.
And how do you load images asynchronously?
by Sergey Tkachenko
Sun May 11, 2025 5:45 pm
Forum: Support
Topic: Change font programmatically
Replies: 2
Views: 6229

Re: Change font programmatically

By the way, if you want to change font for new documents in RichViewActions (File | New command, or for loaded text styles). it must be done differently depending on using StyleTemplates (named styles).

If you use named styles (RichViewEdit1.UseStyleTemplates = True), change properties of "Normal ...
by Sergey Tkachenko
Sun May 11, 2025 5:21 pm
Forum: Support
Topic: Adding custom attributes to TRichViewEdit.
Replies: 1
Views: 6207

Re: Adding custom attributes to TRichViewEdit.

There is no easy way to do it.
In the next update, I'll extend functionality of OnSaveHTMLExtra event to allow adding additional attributes when saving non-text items.
by Sergey Tkachenko
Sun May 11, 2025 5:17 pm
Forum: Support
Topic: Change font programmatically
Replies: 2
Views: 6229

Re: Change font programmatically

After changing properties of TextSTyles, call RichViewEdit1.Format;
If the combobox is still not updated, call RichViewEdit1.CurTextStyleChange.
by Sergey Tkachenko
Wed May 07, 2025 3:36 pm
Forum: Support
Topic: cmbStyles appears empty
Replies: 14
Views: 31369

Re: cmbStyles appears empty

There are no predefined styles.
Each document has its own list of styles.
But there are some reserved names of styles, such as "Normal", "heading 1", "Hyperlink", etc. They may have special meaning; and RichViewActions display their names translated.
But documents do not necessary include these ...
by Sergey Tkachenko
Wed May 07, 2025 11:33 am
Forum: Support
Topic: cmbStyles appears empty
Replies: 14
Views: 31369

Re: cmbStyles appears empty

As I said in the very beginning, RichViewActions applies the collection of rvActionNew.StyleTemplates to new documents.
This collection has 5 styles in this demo. But you can edit this collection - add and delete style (although, I do not recommend deleting the initial styles).
In the ActionTest ...
by Sergey Tkachenko
Tue May 06, 2025 6:28 pm
Forum: Support
Topic: cmbStyles appears empty
Replies: 14
Views: 31369

Re: cmbStyles appears empty

Sorry, I cannot reproduce the problem.

With the default settings, with the default readme.rvf, the combobox shows 16 out of 17 styles:
cmbStyles.png
cmbStyles.png (39.76 KiB) Viewed 28900 times
by Sergey Tkachenko
Tue May 06, 2025 9:36 am
Forum: Support
Topic: cmbStyles appears empty
Replies: 14
Views: 31369

Re: cmbStyles appears empty

There is no "5 styles" limitation.
But not all styles are displayed in the cmbobox by default.
With the default settings, the combobox displays:
- styles that have QuickAccess property = True
- used heading level styles + one extra heading level style (but not less than 3 heading level styles).
If ...
by Sergey Tkachenko
Mon May 05, 2025 4:10 pm
Forum: Support
Topic: cmbStyles appears empty
Replies: 14
Views: 31369

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

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

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

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

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