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 ...
Search found 9730 matches
- Wed Jul 02, 2025 7:10 pm
- Forum: Support
- Topic: ConvertSymbolFonts and bullets
- Replies: 6
- Views: 11500
- Wed Jul 02, 2025 4:05 pm
- Forum: Support
- Topic: TRichView.LoadRTF takes a lot of time to execute
- Replies: 2
- Views: 925
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 ...
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 ...
- Wed Jul 02, 2025 3:17 pm
- Forum: Support
- Topic: ConvertSymbolFonts and bullets
- Replies: 6
- Views: 11500
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 ...
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 ...
- Sat Jun 28, 2025 6:01 pm
- Forum: Support
- Topic: OnClick occurs on a touchscreen scroll
- Replies: 4
- Views: 5800
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.
I suggest using other mouse events instead.
- Fri Jun 27, 2025 6:04 pm
- Forum: Support
- Topic: Changing hyperlink tag issue
- Replies: 5
- Views: 7225
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 ...
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 ...
- Wed Jun 25, 2025 1:01 pm
- Forum: Support
- Topic: Changing hyperlink tag issue
- Replies: 5
- Views: 7225
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 ...
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 ...
- Wed Jun 25, 2025 12:22 pm
- Forum: Support
- Topic: DrawStyleText DrawLine issue
- Replies: 2
- Views: 4980
Re: DrawStyleText DrawLine issue
What's your code in OnDrawStyleText?
- Fri Jun 20, 2025 4:36 pm
- Forum: Support
- Topic: Lost access to my old email
- Replies: 2
- Views: 9219
Re: Lost access to my old email
Answered in a private message.
- Thu Jun 19, 2025 1:11 pm
- Forum: Support
- Topic: ConvertSymbolFonts and bullets
- Replies: 6
- Views: 11500
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 ...
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 ...
- Tue Jun 17, 2025 5:37 pm
- Forum: Support
- Topic: Replace hyperlink with new RTF?
- Replies: 2
- Views: 9367
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 ...
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 ...
- Mon Jun 16, 2025 9:52 am
- Forum: Support
- Topic: RVFont/RvFontSize- Combobox preview on highlighted items possible
- Replies: 3
- Views: 16548
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 ...
PS: AutoComplete does not work properly, because after the first completion, the combobox moves the input focus to the editor. It will be ...
- Sat Jun 14, 2025 2:44 pm
- Forum: Support
- Topic: Linked images in RTF?
- Replies: 3
- Views: 14662
Re: Linked images in RTF?
1. As for RTF import:
External images are supported. These images are inserted when reading 'INCLUDEPICTURE' or 'IMPORT' RTF fields.
If the referred picture is local, it is loaded automatically. If it is on a remote location, you need to use OnImportPicture event (but, if you use RichViewActions ...
External images are supported. These images are inserted when reading 'INCLUDEPICTURE' or 'IMPORT' RTF fields.
If the referred picture is local, it is loaded automatically. If it is on a remote location, you need to use OnImportPicture event (but, if you use RichViewActions ...
- Tue Jun 10, 2025 11:43 am
- Forum: Support
- Topic: Canvas does not allow drawing occassionally
- Replies: 1
- Views: 11723
Re: Canvas does not allow drawing occassionally
TRichView need a parent form for formatting. The form may be hidden.
The alternative is using TRVReportHelper component. It contains invisible TRichView inside (accessible as RichView property) that does not need a parent form. TRVReportHelper must be formatted using RVReportHelper.Init method ...
The alternative is using TRVReportHelper component. It contains invisible TRichView inside (accessible as RichView property) that does not need a parent form. TRVReportHelper must be formatted using RVReportHelper.Init method ...
- Fri Jun 06, 2025 11:23 am
- Forum: Support
- Topic: Getting item index of selected control
- Replies: 2
- Views: 15145
Re: Getting item index of selected control
If you want to find the location of the control, you can use this function:
procedure FindControlLocation(var RVData: TCustomRVData; out ItemNo: Integer);
var
table: TRVTableItemInfo;
r,c: Integer;
begin
ItemNo := RVData.FindControlItemNo(TControl(Sender));
if ItemNo<0 then
begin
RVData ...
procedure FindControlLocation(var RVData: TCustomRVData; out ItemNo: Integer);
var
table: TRVTableItemInfo;
r,c: Integer;
begin
ItemNo := RVData.FindControlItemNo(TControl(Sender));
if ItemNo<0 then
begin
RVData ...
- Fri Jun 06, 2025 11:14 am
- Forum: Support
- Topic: Getting item index of selected control
- Replies: 2
- Views: 15145
Re: Getting item index of selected control
The simplest solution is selecting the control on clicking on it: process OnMouseDown of controls, and call RichViewEdit.SelectControl() in it.
See the example in viewtopic.php?t=157 (how to resize and drag&drop controls in the editor).
See the example in viewtopic.php?t=157 (how to resize and drag&drop controls in the editor).