Forum > Beginners

Change OnShow Event Signature


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

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).


OK was just wondering  :)

Thank you !


[0] Message Index

Go to full version