Page 1 of 1
clear content manually without actions
Posted: Fri Feb 11, 2011 2:07 pm
by JohnMirror
How can I clear manually the content of ScaleRichView before loading another file..?
Is ScaleRichView.Clear good...?
Thank you.
Posted: Fri Feb 11, 2011 4:27 pm
by Sergey Tkachenko
Yes, call TSRichViewEdit.Clear.
Posted: Sat Feb 12, 2011 7:44 am
by JohnMirror
Ok, thanks.
Posted: Sat Feb 12, 2011 1:28 pm
by Sergey Tkachenko
After srv.Clear, call srv.Format.
Posted: Sat Feb 12, 2011 1:51 pm
by JohnMirror
Ok.
If, between Clear and Format, sometimes I load a rtf, Format will use srv.onProgress too?
Posted: Sat Feb 12, 2011 7:38 pm
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.
Posted: Sat Feb 12, 2011 10:12 pm
by JohnMirror
Ok.
Maybe you'll implement for saving rtf too. On larger ones I wait 10..20 sec...