Search found 9714 matches

by Sergey Tkachenko
Tue Jun 03, 2025 3:41 pm
Forum: Support
Topic: Selected Text in font combobox ScaleRichviewEditor
Replies: 1
Views: 886

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

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

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

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

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

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

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

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

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

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 ...
by Sergey Tkachenko
Sun May 25, 2025 8:04 pm
Forum: Support
Topic: Importing Hyperkinks in RTF adds drive path
Replies: 2
Views: 2777

Re: Importing Hyperkinks in RTF adds drive path

Assign RichView.RTFReadProperties.BasePathLinks = False.
by Sergey Tkachenko
Sun May 25, 2025 8:02 pm
Forum: Support
Topic: Which EVENT triggered after loading RTF file?
Replies: 3
Views: 4620

Re: Which EVENT triggered after loading RTF file?

No event occurs after loading RTF file.
OnLoadDocument occurs when loading a document from DB via LiveBindings.
Even if this event existed, nothing would be changed.

Maybe it will work if you remove Application.ProcessMessages?
by Sergey Tkachenko
Thu May 22, 2025 9:22 pm
Forum: Support
Topic: RTF issue in TRichViewEdit when created run-time
Replies: 3
Views: 5047

Re: RTF issue in TRichViewEdit when created run-time

The default property values are not optimal for RTF reading.
Unfortunately, they cannot be changed because of possible compatibility problems. Instead, optimal property values are assigned when the component is placed on a form at desigtime.
Assign
MyRichView.RTFReadProperties.TextStyleMode ...
by Sergey Tkachenko
Mon May 19, 2025 9:15 pm
Forum: Support
Topic: Poll: Revised background - multiple images?
Replies: 1
Views: 9251

Re: Poll: Revised background - multiple images?

This is a screenshot of an application that I use to test new background features.

background-test.png
background-test.png (37.91 KiB) Viewed 6987 times

Probably, it will be included in TRichView demo projects.
As you can see, the parameters are the same as in HTML/CSS.
Background compatibility will be maintained.
by Sergey Tkachenko
Sat May 17, 2025 7:22 pm
Forum: Support
Topic: Poll: Revised background - multiple images?
Replies: 1
Views: 9251

Poll: Revised background - multiple images?

I'm working on redesigning the background customization features in the component. The new background system will support almost all the positioning, scaling, and repeating options for background images available in HTML/CSS. I have a question: how important would it be to support multiple ...