Search found 9734 matches

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

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: 1
Views: 678

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

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

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

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

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

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

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

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

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

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

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

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 ...
by Sergey Tkachenko
Tue Jun 17, 2025 5:37 pm
Forum: Support
Topic: Replace hyperlink with new RTF?
Replies: 2
Views: 14777

Re: Replace hyperlink with new RTF?

Do you want to do it as an editing operation (undoable?)
If yes, just select the link and insert a new content. The selection will be replaced.

Let the caret is in the item that needs to be replaced, and the new RTF content is in Stream:

var
ItemNo, Offs1, Offs2: Integer;
rve ...
by Sergey Tkachenko
Mon Jun 16, 2025 9:52 am
Forum: Support
Topic: RVFont/RvFontSize- Combobox preview on highlighted items possible
Replies: 3
Views: 23006

Re: RVFont/RvFontSize- Combobox preview on highlighted items possible

Unfortunately, this functionality is not supported. As far as I know, TComboBox does not provide notification when an item is highlighted without selecting it.

PS: AutoComplete does not work properly, because after the first completion, the combobox moves the input focus to the editor. It will be ...