Search found 66 matches

by Vitalii
Sun Jan 04, 2026 2:16 pm
Forum: Support
Topic: Create constructor never called in the TRVGraphicItemInfo descendants
Replies: 2
Views: 1942

Re: Create constructor never called in the TRVGraphicItemInfo descendants

Yes, I am currently overriding both constructors. This issue is more about expected behavior: the Create constructor is usually interpreted as the main one, responsible for initializing all fields. All other constructors are interpreted as secondary (CreateEx). In my opinion, it would be logical to ...
by Vitalii
Sun Jan 04, 2026 9:42 am
Forum: Support
Topic: Coordinates of the object on the page, if it is in the table
Replies: 3
Views: 1723

Re: Coordinates of the object on the page, if it is in the table


I don't use the SRVE, but maybe you have to reference the TopLevelEditor? I have to do that with the regular rve to handle table stuff, e.g., rve.TopLevelEditor...


Hi Stan, you're right. The key is in the correct RVData. I changed the linear text loop to a recursive table loop, and now the ...
by Vitalii
Sat Jan 03, 2026 6:27 pm
Forum: Support
Topic: Coordinates of the object on the page, if it is in the table
Replies: 3
Views: 1723

Coordinates of the object on the page, if it is in the table

I have a question about the coordinates of the TCustomRVItemInfo object on the page. I need to draw a graphic primitive next to the object. Everything works fine, but if the object is in a table, the approach failed. Here is a part of a code:


procedure TEditor.SRVEditPaint(Sender: TSRichViewEdit ...
by Vitalii
Sat Jan 03, 2026 4:19 pm
Forum: Support
Topic: Create constructor never called in the TRVGraphicItemInfo descendants
Replies: 2
Views: 1942

Create constructor never called in the TRVGraphicItemInfo descendants

I have the following problem. I am creating a descendant of TRVGraphicItemInfo using CreateEx constructor, but the overridden Create constructor is never called. As a result, I cannot initialize additional properties:


TRVChartItemInfo = class(TRVGraphicItemInfo);

constructor TRVChartItemInfo ...
by Vitalii
Sat Dec 27, 2025 1:23 pm
Forum: Support
Topic: Control the width of table columns programmatically
Replies: 5
Views: 11690

Re: Control the width of table columns programmatically

The content in the table changes via TRVLabelItemInfo.Text:

SRichViewEdit.CanUpdate := False;
try
ALabel.Text := '<some large text>'; // <-- here the table extends (expected behavior)
{ other operations... }
ALabel.Text := 'A'; // <-- here, the table width should return to normal (but it doesn ...
by Vitalii
Sat Dec 27, 2025 7:16 am
Forum: Support
Topic: Control the width of table columns programmatically
Replies: 5
Views: 11690

Re: Control the width of table columns programmatically

The sequence of actions is as follows:

1. The table contains content (text) that changes programmatically.
2. The content increases > the table columns expand.
3. The content decreases > the table columns remain wide.
4. Task: adjust the width of the columns to the current size of the content

I ...
by Vitalii
Thu Dec 11, 2025 9:50 pm
Forum: Support
Topic: Control the width of table columns programmatically
Replies: 5
Views: 11690

Control the width of table columns programmatically

Hi, I have a specific question about tables.

The editor has a TRVTableItemInfo table that contains TRVLabelItemInfo.

According to the program logic, I programmatically change TRVLabelItemInfo.Text twice. The first time, the width of the table columns automatically adapts to the wide text, which is ...
by Vitalii
Sat Jul 06, 2024 3:20 pm
Forum: Support
Topic: Automatically trim TRVLabelItemInfo
Replies: 0
Views: 192373

Automatically trim TRVLabelItemInfo

Hello RV-community!
I want to optimize the descendant of TRVLabelItemInfo so that the text always fits in a line. If there is too much text, I plan to put an ellipsis at the end (as in the photo). Can you tell me how to solve this problem?
by Vitalii
Thu Jun 13, 2024 3:17 pm
Forum: Support
Topic: How to use Redo after TRVUndoList.AddInfo?
Replies: 4
Views: 43780

Re: How to use Redo after TRVUndoList.AddInfo?

Yep, I need to add "AddUndo" to the Undo method. Thank you, Sergey)
by Vitalii
Thu Jun 13, 2024 10:31 am
Forum: Support
Topic: How to use Redo after TRVUndoList.AddInfo?
Replies: 4
Views: 43780

Re: How to use Redo after TRVUndoList.AddInfo?

Yes, implementation of the TRVUndoModifyMathObject.Undo is here:


procedure TRVUndoModifyMathObject.Undo(RVData: TRichViewRVData);
var
ItemInfo: TRVMathObjectItemInfo;
begin
if FItemNo > -1 then
begin
ItemInfo := TRVMathObjectItemInfo(RVData.GetItem(FItemNo));
if Assigned(ItemInfo) then ...
by Vitalii
Wed Jun 12, 2024 5:34 pm
Forum: Support
Topic: How to use Redo after TRVUndoList.AddInfo?
Replies: 4
Views: 43780

How to use Redo after TRVUndoList.AddInfo?

Hi, I have read other forum threads regarding "Custom Undo" operations, but I did not find an answer.
Based on this topic , I implemented a custom Undo class, and it works fine:


class procedure TRVUndoModifyMathObject.AddUndo(RVData: TRichViewRVData;
ItemInfo: TRVMathObjectItemInfo);
var
Edit ...
by Vitalii
Wed May 22, 2024 5:42 am
Forum: Support
Topic: TRVMathItemInfo.TextColor problem on existing objects
Replies: 2
Views: 34303

Re: TRVMathItemInfo.TextColor problem on existing objects

Thank you Sergey, by email would be great.
by Vitalii
Wed May 08, 2024 10:37 am
Forum: Support
Topic: TRVMathItemInfo.TextColor problem on existing objects
Replies: 2
Views: 34303

TRVMathItemInfo.TextColor problem on existing objects

I have a problem with setting the TRVMathItemInfo.TextColor property. When the formula is created (a new one is added), this property works fine. But when the formula already exists and I try to change the TextColor, nothing happens. The same problem occurs with the visual formula editor ...
by Vitalii
Sun Jan 29, 2023 9:29 pm
Forum: Support
Topic: Problem with STIX Math font
Replies: 8
Views: 28533

Re: Problem with STIX Math font

I commented the code and tested AME's solution. The fonts "STIXTwoMath-Regular.otf" and "STIXTwoMath-Regular.ttf" failed anyway (now the AV appears in a different place). It seems to me that the engine does not work properly with some characters, because the font "STIXTwoMath-Regular.input.ttf ...