clear content manually without actions

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
JohnMirror
Posts: 13
Joined: Fri Feb 04, 2011 12:05 am

clear content manually without actions

Post by JohnMirror »

How can I clear manually the content of ScaleRichView before loading another file..?
Is ScaleRichView.Clear good...?
Thank you.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Yes, call TSRichViewEdit.Clear.
JohnMirror
Posts: 13
Joined: Fri Feb 04, 2011 12:05 am

Post by JohnMirror »

Ok, thanks.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

After srv.Clear, call srv.Format.
JohnMirror
Posts: 13
Joined: Fri Feb 04, 2011 12:05 am

Post by JohnMirror »

Ok.
If, between Clear and Format, sometimes I load a rtf, Format will use srv.onProgress too?
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Currently, OnProgress is called only while loading RTF (if RTF is not too small). In future, it will be called while loading other formats too.
May be Format will call it too, but not soon.
JohnMirror
Posts: 13
Joined: Fri Feb 04, 2011 12:05 am

Post by JohnMirror »

Ok.
Maybe you'll implement for saving rtf too. On larger ones I wait 10..20 sec...
Post Reply