SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Form Oncreate event

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
DavidD



Joined: 07 Mar 2007
Posts: 17
Location: United States

PostPosted: Fri Mar 09, 2007 9:41 pm    Post subject: Form Oncreate event Reply with quote

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?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Mon Mar 12, 2007 5:33 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group