Search found 9725 matches

by Sergey Tkachenko
Wed Jun 25, 2025 1:01 pm
Forum: Support
Topic: Changing hyperlink tag issue
Replies: 3
Views: 1299

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

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

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: 2
Views: 6056

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

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

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 ...
by Sergey Tkachenko
Sat Jun 14, 2025 2:44 pm
Forum: Support
Topic: Linked images in RTF?
Replies: 3
Views: 10098

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 ...
by Sergey Tkachenko
Tue Jun 10, 2025 11:43 am
Forum: Support
Topic: Canvas does not allow drawing occassionally
Replies: 1
Views: 8374

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 ...
by Sergey Tkachenko
Fri Jun 06, 2025 11:23 am
Forum: Support
Topic: Getting item index of selected control
Replies: 2
Views: 10948

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 ...
by Sergey Tkachenko
Fri Jun 06, 2025 11:14 am
Forum: Support
Topic: Getting item index of selected control
Replies: 2
Views: 10948

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).
by Sergey Tkachenko
Fri Jun 06, 2025 10:40 am
Forum: Support
Topic: RVFont/RvFontSize- Combobox preview on highlighted items possible
Replies: 3
Views: 11794

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

AutoComplete property for these combo boxes is False by default, intentionally.
Each time when autocomplete works, the font is applied, adding a new item to RVStyle.TextStyles (if there is no existing items with these properties).
While these items will be removed after the next call of ...
by Sergey Tkachenko
Tue Jun 03, 2025 3:41 pm
Forum: Support
Topic: Selected Text in font combobox ScaleRichviewEditor
Replies: 3
Views: 15273

Re: Selected Text in font combobox ScaleRichviewEditor

The demo uses a workaround,

const
WM_DESELECTCOMBO = WM_USER + 1;

In the form's interface section:

procedure WMDeselectCombo(var Msg: TMessage); message WM_DESELECTCOMBO;
procedure DeselectComboBoxes;

Implementation:

procedure TForm3.DeselectComboBoxes;
begin
cmbFontSize.SelLength := 0 ...
by Sergey Tkachenko
Sun Jun 01, 2025 2:24 pm
Forum: Support
Topic: Simulate a backspace key
Replies: 3
Views: 15202

Re: Simulate a backspace key

TCustomRichViewEdit has a method for processing Backspace:
procedure OnBackSpacePress(Ctrl: Boolean);
But this method is protected.
You can try to call it in this way:

type
TCustomRichViewEditHack = class (TCustomRichViewEdit)
end;
...
TCustomRichViewEditHack(RichViewEdit1.TopLevelEditor ...
by Sergey Tkachenko
Sun Jun 01, 2025 2:13 pm
Forum: Support
Topic: How to Implement Custom Hyperlink Handling in TRichView with Delphi?
Replies: 1
Views: 9719

Re: How to Implement Custom Hyperlink Handling in TRichView with Delphi?

The correct event is OnJump
The help topic has an example code how to get a target of the clicked link (assuming that this target is stored in the item's tag).

PS: there is no OnRVHyperlink event. There is OnReadHyperlink event that occurs when reading hyperlinks from RTF, DocX, HTML, or Markdown ...
by Sergey Tkachenko
Fri May 30, 2025 1:15 pm
Forum: Support
Topic: Building document on scroll
Replies: 1
Views: 10000

Re: Building document on scroll

Sorry, not supported yet.