Is there a way to cast TForm into a IDispatch?

From: Augusto (augusto_at_bennersaude.com.br)
Date: 12/31/03


Date: Wed, 31 Dec 2003 08:43:47 -0300

Is there a way to cast TForm into a IDispatch?

I want to add my form and its controls to a MSScriptControl

scriptcontrol1.addObject('Form1', TForm1, True);

Thanks



Relevant Pages

  • Re: working with BPLs
    ... > I put the RegisterClass line like this: ... > UnregisterClass (TForm1); ... How can I get the scrollbox I have in this f variable?. ... controls you're interested in, and they will probably be owned by the ...
    (alt.comp.lang.borland-delphi)
  • Re: How to do this in Dephi
    ... > Basically I was wondering what the controls equivalent was in Delphi. ... tForm1 = class ... When using a tList, one needs to typecast references, e.g. ...
    (borland.public.delphi.language.objectpascal)
  • Re: Wahlweise eines von zwei Formularen verwenden
    ... viele Controls millimetergenau positioniert sind. ... sam plazierten Controls auf TForm1 und TForm2 nochmal genauso mühsam ... an die richtigen Stellen schieben muß. ...
    (de.comp.lang.delphi.misc)