OnSaveParaToHTML

General TRichView support forum. Please post your questions here
Post Reply
ravn
Posts: 8
Joined: Wed Jan 21, 2015 6:08 pm

OnSaveParaToHTML

Post by ravn »

Where can I find this event in Richview "OnSaveParaToHTML"
It's not where I expected. how do I associate that event with Richview.
I am using RichViewEdit 21.0
Sergey Tkachenko
Site Admin
Posts: 17524
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: OnSaveParaToHTML

Post by Sergey Tkachenko »

TRichView has OnSaveParaToHTML event, but this event is public, not published.
It is because this event was implemented on a request, but I do not think it is useful. It allows adding HTML code between paragraphs (before <p> and after </p>). There are few application of this feature. So I decided to hide this event from Object Inspector.

If you still need it, you can define a procedure that handles this event:

Code: Select all

procedure TMyForm.MyRichViewSaveParaToHTML(Sender: TCustomRichView; 
  RVData: TCustomRVData; ItemNo: Integer; ParaStart,
  CSSVersion: Boolean; var HTMLCode: TRVUnicodeString);
begin
 ...
end;
and assign it to the event:

Code: Select all

MyRichView.OnSaveParaToHTML := MyRichViewSaveParaToHTML;
Post Reply