TRichViewEdit - Appending a File
Posted: Fri Feb 22, 2013 12:13 pm
This works for RTF, but if you try and append an RVF file, it automatically clears beforehand as you can see below.
Should the "Clear" in this routine be removed to make it consistent with the RTF import?
function TCustomRVData.LoadRVFFromStream(Stream: TStream; var Color: TColor;
Background: TRVBackground; Layout: TRVLayoutInfo
{$IFNDEF RVDONOTUSESTYLETEMPLATES}
; ReadStyleTemplates: TRVStyleTemplateCollection
{$ENDIF}):Boolean;
begin
Clear;
Result := InsertRVFFromStream(Stream,0, Color, Background, Layout, True
{$IFNDEF RVDONOTUSESTYLETEMPLATES}, ReadStyleTemplates{$ENDIF});
end;
Should the "Clear" in this routine be removed to make it consistent with the RTF import?
function TCustomRVData.LoadRVFFromStream(Stream: TStream; var Color: TColor;
Background: TRVBackground; Layout: TRVLayoutInfo
{$IFNDEF RVDONOTUSESTYLETEMPLATES}
; ReadStyleTemplates: TRVStyleTemplateCollection
{$ENDIF}):Boolean;
begin
Clear;
Result := InsertRVFFromStream(Stream,0, Color, Background, Layout, True
{$IFNDEF RVDONOTUSESTYLETEMPLATES}, ReadStyleTemplates{$ENDIF});
end;