Forum > Beginners

Change OnShow Event Signature

(1/1)

Weitentaaal:
Hello Guys,

Is it Possible to change this:

procedure TMyForm.FormCreate(Sender: TObject);

to this :

procedure TMyForm.FormCreate(Sender: TObject, CurrentController: TMyFormController);

Thanks in advance

Bart:
If you don't mind a crash at startup, then yes  O:-)

(You can chage the code manually and the IDE won't mind if teh signature is wrong when you load the project, but at runtime you're in for a nasty surpise.)

Of course you can extend your form with a new event and fire that in it's OnCreate (or override it's constructor to do it).

Bart

Weitentaaal:
OK was just wondering  :)

Thank you !

Navigation

[0] Message Index

Go to full version