Search found 9736 matches

by Sergey Tkachenko
Tue Jul 15, 2025 11:49 am
Forum: Support
Topic: RichViewActions - Bullet List Styles
Replies: 1
Views: 185

Re: RichViewActions - Bullet List Styles

1) TRichView saves these bullets to RTF as simple pictures.
I do not remember what this solution was chosen instead of RTF's bullet-pictures. Most probably, MS Word resizes bullet-pictures in an uncontrollable way, and results do not look good for most pictures.
This is the reason why this list ...
by Sergey Tkachenko
Tue Jul 15, 2025 11:18 am
Forum: Support
Topic: Caret placement on Android vs iOS
Replies: 2
Views: 619

Re: Caret placement on Android vs iOS

It is intentional. TRIchViewEdit mimics TEdit and TMemo behavior. They, as I understand it, mimic the behavior of standard editors for the platform.
by Sergey Tkachenko
Sun Jul 13, 2025 12:05 pm
Forum: Support
Topic: Android crash in Hide after I added a toolbar
Replies: 3
Views: 2574

Re: Android crash in Hide after I added a toolbar

It looks like this is a bug.
Open fmxRVSelectionHandlesFM.pas, and change procedure TRVFMXSelectionHandles.Clear to:

procedure TRVFMXSelectionHandles.Clear;
begin
FLeftSelPt := nil;
FRightSelPt := nil;
FCaretPt := nil;
end;

Then recompile the packages (run "Install TRichView FMX in Delphi IDE ...
by Sergey Tkachenko
Sun Jul 13, 2025 12:00 pm
Forum: Support
Topic: Bad RTF table causing RichView to error
Replies: 2
Views: 1028

Re: Bad RTF table causing RichView to error

This exception happens in try..except block, and finally LoadRTF function simply returns False.
The exception is not noticeable unless debugging in Delhi IDE.
by Sergey Tkachenko
Sun Jul 13, 2025 6:37 am
Forum: Support
Topic: HighDPI Windows zoom
Replies: 3
Views: 4132

Re: HighDPI Windows zoom

The correct way to change zooming is assigning DocumentPixelsPerInch property (in VCL and Lazarus versions)
by Sergey Tkachenko
Thu Jul 03, 2025 7:02 pm
Forum: Support
Topic: GetItemStyle returns value of six
Replies: 1
Views: 16448

Re: GetItemStyle returns value of six

The values in this table are indexes of initial styles. These styles are added to TRVStyle.TextStyles by default, but you can add and delete them.

While editing (including insertion from a file or the clipboard), new styles can be added. Editing operation do not delete styles, but they can add new ...
by Sergey Tkachenko
Wed Jul 02, 2025 7:10 pm
Forum: Support
Topic: ConvertSymbolFonts and bullets
Replies: 6
Views: 24397

Re: ConvertSymbolFonts and bullets

I also noticed that your using of the \u# for unicode chars does not have the fallback char in it, like "\u123456 ?". I thought that fallback char was mandatory.
Fallback chars are optional. If you need them, include rvrtfDuplicateUnicode in RTFOptions property.
These characters are useful if this ...
by Sergey Tkachenko
Wed Jul 02, 2025 4:05 pm
Forum: Support
Topic: TRichView.LoadRTF takes a lot of time to execute
Replies: 2
Views: 6355

Re: TRichView.LoadRTF takes a lot of time to execute

This is a TRichView bug.
It appears that SimpleConcateSubitems processes each item in table cells twice (when calling MassSimpleConcate, and directly in SimpleConcateSubitems). As a result, the number of calls grows exponentially depending on the table nesting level.
When table nesting level is not ...
by Sergey Tkachenko
Wed Jul 02, 2025 3:17 pm
Forum: Support
Topic: ConvertSymbolFonts and bullets
Replies: 6
Views: 24397

Re: ConvertSymbolFonts and bullets

TRichView uses format strings with "%s" placeholders for list text (RVStyles.ListStyles[].Levels[].FormatString).
However, it is expected that "%s" placeholders are used only in FormatStrings for numbered list types (like decimal, Roman, etc.), not for bullets.
So, for bullets, TRichView saves ...
by Sergey Tkachenko
Sat Jun 28, 2025 6:01 pm
Forum: Support
Topic: OnClick occurs on a touchscreen scroll
Replies: 4
Views: 13135

Re: OnClick occurs on a touchscreen scroll

OnClick means clicking on control, and TRichView has the default behavior inherited from TControl.
I suggest using other mouse events instead.
by Sergey Tkachenko
Fri Jun 27, 2025 6:04 pm
Forum: Support
Topic: Changing hyperlink tag issue
Replies: 5
Views: 15691

Re: Changing hyperlink tag issue

Yes, the idea is generally correct.

Some notes:

1. Your code does not work if the hyperlink is in a table cell.
(the "current" methods work for cells, but not methods that use item indexes)
To fix, instead of RichViewEdit1, use RichViewEdit1.TopLevelEditor.

2. When finding a range of the link's ...
by Sergey Tkachenko
Wed Jun 25, 2025 1:01 pm
Forum: Support
Topic: Changing hyperlink tag issue
Replies: 5
Views: 15691

Re: Changing hyperlink tag issue

Yes, if a hyperlink has text having different fonts, it is represented as several text items.
But they are highlighted as a whole, and they are saved back to RTF as a single hyperlink.

However, if you want to update the link target, you need to update Tags of all adjacent items that has the same ...
by Sergey Tkachenko
Wed Jun 25, 2025 12:22 pm
Forum: Support
Topic: DrawStyleText DrawLine issue
Replies: 2
Views: 10803

Re: DrawStyleText DrawLine issue

What's your code in OnDrawStyleText?
by Sergey Tkachenko
Fri Jun 20, 2025 4:36 pm
Forum: Support
Topic: Lost access to my old email
Replies: 2
Views: 14777

Re: Lost access to my old email

Answered in a private message.
by Sergey Tkachenko
Thu Jun 19, 2025 1:11 pm
Forum: Support
Topic: ConvertSymbolFonts and bullets
Replies: 6
Views: 24397

Re: ConvertSymbolFonts and bullets

\leveltext\'02·\'00 defines a two-character string. The first character is '·', the second character is a placeholder for the list counter.
However, for this list, \levelnfc23 is set, that means "Bullet" (no list counter).
While this is bug of this RTF, I'll change RTF reading code to remove list ...