OnCreate/ondestroy events not available?

General TRichView support forum. Please post your questions here
Post Reply
motions

OnCreate/ondestroy events not available?

Post by motions »

It seems to me that Trichviewedit does not publish oncreate/ondestroy events in the object inspectior.
Is that correct?
I'd like to use them to create a trichviewedit descendant, which is then be used in multiple places within my application.
I'm testing basically a new combined visual component including the RVActions, Popupmenu, RVcontrolpanel etc. and using them as a RichEdit replacement in my application.
another approach might be using a frame, which combines all the above components.
But as I also like to create a TRichview Wrapper for IBObjects (database connector to Firebird/interbase SQL servers) I need access to that events.
Sergey Tkachenko
Site Admin
Posts: 17288
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, I do not understand how these events can help to create a descendant component.
Only forms have these events.
If you need to create a descendant, create a component inherited from TRichViewEdit and override its contstructor (Create) and destructor (Destroy).
motions

Post by motions »

Sergey,
of course your are right. It is working, so that I can give it a try ...
Thanks.
Post Reply