Hi there,
I've built an interface which is implemented in all of my forms. This works great and do exaclty what I want to:
type TfrmTest = class(TForm, IFormIntf)}
Also, I succeeded to create dynamically a form and again, this works perfectly:
var frm: IFormIntf
frm := TfrmTest.Create(Application);
The problem I have now is to bring back the instance of the interface to its original creator and invoke a specific method not included in the interface (I also tried to call and overload method without results):
(frm as TfrmTest).SpecificMethod;
Any ideas?
Thanks in advance,
Rej Cloutier
I've built an interface which is implemented in all of my forms. This works great and do exaclty what I want to:
type TfrmTest = class(TForm, IFormIntf)}
Also, I succeeded to create dynamically a form and again, this works perfectly:
var frm: IFormIntf
frm := TfrmTest.Create(Application);
The problem I have now is to bring back the instance of the interface to its original creator and invoke a specific method not included in the interface (I also tried to call and overload method without results):
(frm as TfrmTest).SpecificMethod;
Any ideas?
Thanks in advance,
Rej Cloutier