Removing Application.ProcessMessages has no effect. I think TRichViewEdit loads documents asynchronously. OnLoadingFinished event would be fine, but it is not very important.
TRichViewEdit becomes sluggish when it has some large images. Is there anything we can do about it? (I am using VCL)
Search found 5 matches
- Sun May 25, 2025 9:13 pm
- Forum: Support
- Topic: Which EVENT triggered after loading RTF file?
- Replies: 3
- Views: 3697
- Sat May 24, 2025 9:08 am
- Forum: Support
- Topic: Which EVENT triggered after loading RTF file?
- Replies: 3
- Views: 3697
Which EVENT triggered after loading RTF file?
I load large RTF file using TRichViewEdit. I want to display loading cursor when RTF file is loading.
However this code immediately changes the cursor to crDefault (before loading the RTF completely).
Screen.Cursor:=crAppStart;
Application.ProcessMessages;
RichViewEdit1.ClearAll;
RichViewEdit1 ...
However this code immediately changes the cursor to crDefault (before loading the RTF completely).
Screen.Cursor:=crAppStart;
Application.ProcessMessages;
RichViewEdit1.ClearAll;
RichViewEdit1 ...
- Thu May 22, 2025 9:33 pm
- Forum: Support
- Topic: RTF issue in TRichViewEdit when created run-time
- Replies: 3
- Views: 4200
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 ...
- Thu May 22, 2025 1:08 pm
- Forum: Support
- Topic: RTF issue in TRichViewEdit when created run-time
- Replies: 3
- Views: 4200
RTF issue in TRichViewEdit when created run-time
This code works perfectly:
begin
MyRichView.Style := RVStyle1;
OpenDialog1.DefaultExt:='rtf';
OpenDialog1.Filter:='RTF Document (*.rtf)|*.rtf';
if OpenDialog1.Execute then
begin
MyRichView.Clear;
MyRichView.LoadRTF(OpenDialog1.FileName);
MyRichView.Format;
end;
end;
This loads RTF file ...
begin
MyRichView.Style := RVStyle1;
OpenDialog1.DefaultExt:='rtf';
OpenDialog1.Filter:='RTF Document (*.rtf)|*.rtf';
if OpenDialog1.Execute then
begin
MyRichView.Clear;
MyRichView.LoadRTF(OpenDialog1.FileName);
MyRichView.Format;
end;
end;
This loads RTF file ...
- Sun May 11, 2025 3:29 pm
- Forum: Support
- Topic: Change font programmatically
- Replies: 2
- Views: 10435
Change font programmatically
Hello, I'm newbie. I want to change font settings programmatically. The code below works but RVFontComboBox1 doesn't respect the change. It still shows the default font name.
Any idea?
Code: Select all
RichViewEdit1.Style.TextStyles[0].FontName:='Times New Roman';