Form Oncreate event

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
DavidD
Posts: 17
Joined: Wed Mar 07, 2007 9:19 pm
Location: United States

Form Oncreate event

Post by DavidD »

The project I am working in has not always used the standard Form and DataModule OnCreate event name. It appears that when you use the TsiLang Expert and perform either the Source With Form or Constants With Form options, the following procedures are created whether or not any strings are added to the translation table and whether or not the unit already has an OnCreate event assigned.

procedure Txxx.DatamoduleCreate(Sender: TObject);
procedure Txxx.siLangLinked1ChangeLanguage(Sender: TObject);
procedure Txxx.UpdateStrings;

Is there any workaround that will maintain our already assigned but ill-named OnCreate events?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Unofrtunately, Delphi doesn't allow to "know" from the IDE that even assigned to custom handler. And this is why Expert creates another OnCreate event. Actually, you can just re-assing your OnCreate event after expert works and be sure your OnCreate handler includes UpdateStrings; call at the beginning.
But we will try to find a way to improve this.
Best regards,
Igor Siticov.
Post Reply