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
OnSaveParaToHTML
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: OnSaveParaToHTML
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:
and assign it to the event:
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;
Code: Select all
MyRichView.OnSaveParaToHTML := MyRichViewSaveParaToHTML;