Search found 9719 matches

by Sergey Tkachenko
Sat Jun 14, 2025 2:44 pm
Forum: Support
Topic: Linked images in RTF?
Replies: 1
Views: 419

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

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

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

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

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

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

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

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

Re: Building document on scroll

Sorry, not supported yet.
by Sergey Tkachenko
Fri May 30, 2025 1:13 pm
Forum: Support
Topic: Simulate a backspace key
Replies: 3
Views: 6477

Re: Simulate a backspace key

In VCL version, you can use SendMessage:

SendMessage(RichViewEdit1.TopLevelEditor.Handle, WM_KEYDOWN, VK_BACK, 0)
by Sergey Tkachenko
Thu May 29, 2025 3:52 pm
Forum: Support
Topic: Activate Insert Key
Replies: 2
Views: 5375

Re: Activate Insert Key

Sorry, what's "insert key"?
by Sergey Tkachenko
Wed May 28, 2025 11:26 am
Forum: Support
Topic: Copy RichView content to another RichView - Table style problem
Replies: 2
Views: 5157

Re: Copy RichView content to another RichView - Table style problem

Not all table properties can be saved to RTF.
Use SaveRVFToStream and LoadRVFToStream.
by Sergey Tkachenko
Tue May 27, 2025 8:08 pm
Forum: Support
Topic: Bookmarks spanning multiple paragraphs?
Replies: 6
Views: 9434

Re: Bookmarks spanning multiple paragraphs?

That topic is on the protected forum, accessible for registered TRichView users.
by Sergey Tkachenko
Tue May 27, 2025 12:03 pm
Forum: Support
Topic: Bookmarks spanning multiple paragraphs?
Replies: 6
Views: 9434

Re: Bookmarks spanning multiple paragraphs?

In TRichView, a bookmark" does not have lengths, it marks a single place in a document.
I plan to implement lengths for bookmarks (most probably, by grouping them in pairs of starting and ending marks), but not in the near future, sorry.

The same for changes discussed in the referred topic.
by Sergey Tkachenko
Mon May 26, 2025 7:45 pm
Forum: Support
Topic: Which EVENT triggered after loading RTF file?
Replies: 3
Views: 8676

Re: Which EVENT triggered after loading RTF file?

1. Sorry, but I cannot reproduce this problem with the mouse cursor.
I checked the demo in TRichView\Demos\Editors\Editor 1\

It has Screen.Cursor := crHourglass before loading, and Screen.Cursor := crDefault; after.
(the call of RichViewEdit1.Format is after restoring the cursor; it's not good, you ...