I used the following to cancel loading rtf:
rtfAbort : boolean=False; // global var
cancel button event:
rtfAbort := True;
in the OnProgress event for trichview:
if rtfAbort then
begin
Richeditview1.clear;
Abort;
end;
Search found 8 matches
- Thu Apr 19, 2007 7:55 am
- Forum: Support
- Topic: Cancel Loading RTF
- Replies: 2
- Views: 11434
- Tue Apr 17, 2007 8:43 pm
- Forum: Support
- Topic: Cancel Loading RTF
- Replies: 2
- Views: 11434
Cancel Loading RTF
When an RTF is loaded from a memorystream is it possible to cancel the progress during loading. How do I do this safely? The reason I ask is because I have a dialog box containing a cancel button which displays when an RTF file is loading. I would like the cancel button to stop the loading process ...
- Fri Apr 13, 2007 6:31 pm
- Forum: Support
- Topic: Opening Large Documents
- Replies: 2
- Views: 11434
- Fri Apr 13, 2007 8:13 am
- Forum: Support
- Topic: Opening Large Documents
- Replies: 2
- Views: 11434
Opening Large Documents
Are there any rules to follow when opening large RTF documents. Understandably when opening a large document there is a momentary pause in the test programs I have written. Are there any tips/advice that I could use to reduce this delay? Is there a way to display Progress Bar information whilst the ...
- Fri Apr 13, 2007 8:07 am
- Forum: Support
- Topic: Displaying a Scaled RTF document
- Replies: 1
- Views: 11761
Displaying a Scaled RTF document
Hi, Can anybody share with me a way to view an RTF document which has been scaled down (if that is the correct term). In MS Word there is a dropdown box with 100%, 75% etc to make a page fit on the screen if desired: This is an example of an RTF opened via trichview, very little changes to settings ...
- Thu Apr 12, 2007 7:41 pm
- Forum: Support
- Topic: Pictures in an RTF files
- Replies: 3
- Views: 13296
- Thu Apr 12, 2007 8:28 am
- Forum: Support
- Topic: Pictures in an RTF files
- Replies: 3
- Views: 13296
- Wed Apr 11, 2007 7:06 pm
- Forum: Support
- Topic: Pictures in an RTF files
- Replies: 3
- Views: 13296
Pictures in an RTF files
Hi, I am using the following code to open RTF file from a memory stream: RichViewedit1.Clear; RichViewedit1.LoadRTFFromStream(MyStream); RichViewEdit1.Format; The RTF files that I am opening contain pictures. I have noticed that by default the pictures are not scaled to 100% (original size). Is ...