I'am basically writing a component which has the instance of another component as it private member. The component which is getting instantiated has an Event.. say OnFire()... My first objective is to have the Onfire event
in the new component and whatever data which is getting arrived on onFire event(private member compone.) it should be redirected to the new components method. so I cooly did this TNewData = procedure(sender:TObject;data : Pchar);
FonData : TOndata;
property RevisedFire : TNewData read FOnData write FOnData;
In the create I say
RevisedFire := Instantiatedcomponent.OnFire;
The problem I face is that, the event is not getting fired in my
current component. The problem I found is the following statement in
my olf component(i.e., Onfire())
if assigned(OnFire) then Onfire(self, data);
since the Onfire event is not mapped, if I'am not wrong(method pointer is nil this event is not getting fired)
How to Assign the Onfire event from my method so that when the event
gets triggered in Instantiated compoenent, the data should get redirected to my new components event?
do we have any active faq about comp. design?...any sites please
Please Help me out...
Thanks in advance