Question about the detecting url while typing
Posted: Sun Aug 12, 2007 10:57 am
First, detecting url while typing is ok.
I already tested your demos.
But I have another question about this.
In your \Assorted\Hypertext\URLs demo,
what I want is append the content to another richview,
then click url on richview, but I fail
Here is my code
procedure TForm1.Button1Click(Sender: TObject);
var
myStream : TMemoryStream;
begin
myStream := TMemoryStream.Create();
if RichViewEdit1.SaveRVFToStream(myStream, false) then
begin
myStream.Position := 0;
RichView1.AppendRVFFromStream(myStream, 0);
RichView1.Format;
end;
myStream.free;
end;
the error will occur in "RichView1.AppendRVFFromStream(myStream, 0);"
It will popup an error says
EConvertError, "www.richedit.com" is not a valid integer value.
Please advise
I already tested your demos.
But I have another question about this.
In your \Assorted\Hypertext\URLs demo,
what I want is append the content to another richview,
then click url on richview, but I fail
Here is my code
procedure TForm1.Button1Click(Sender: TObject);
var
myStream : TMemoryStream;
begin
myStream := TMemoryStream.Create();
if RichViewEdit1.SaveRVFToStream(myStream, false) then
begin
myStream.Position := 0;
RichView1.AppendRVFFromStream(myStream, 0);
RichView1.Format;
end;
myStream.free;
end;
the error will occur in "RichView1.AppendRVFFromStream(myStream, 0);"
It will popup an error says
EConvertError, "www.richedit.com" is not a valid integer value.
Please advise