Page 1 of 1

OnCreate/ondestroy events not available?

Posted: Sun Oct 09, 2005 1:05 pm
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.

Posted: Sun Oct 09, 2005 3:13 pm
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).

Posted: Sun Oct 09, 2005 3:29 pm
by motions
Sergey,
of course your are right. It is working, so that I can give it a try ...
Thanks.