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 

Problem with Inheritance and Tsilanglnk

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



Joined: 26 Apr 2009
Posts: 5

PostPosted: Tue May 26, 2009 8:44 am    Post subject: Problem with Inheritance and Tsilanglnk Reply with quote

Hello,
I am almost done translating a big application with your component. I think I found a bug with inheritance and Tsilanglnk linked to a Tsilang. If it is not a bug, I would be very grateful if you could help me solve this problem.
My application was first translated using Korzh Component, but I decided to switch to yours that allowed more control.
All my form are using form inheritance from a base form. As you have suggested, I am using 1 TsiLang component on a form, and all other forms use Tsilanglnk component which have as container the preceding Tsilang.
The base form is using a TsilangLnk, whose container is some Tsilang component located in a form A.
It happens that in a descending form I am changing the reference to this tsilang A, and put the container to another Tsilang located in another form B.
All this works as expected, but while designing my application, if I this inherited form, without previously opening the form B, the container returns automatically to Form A.
Are you aware of this behaviour.
Thanks for any help.
I love your component
regards

Azur
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Thu May 28, 2009 3:04 am    Post subject: Reply with quote

Hello,

It is possible that the problem is not TsiLang related but Delphi's streaming method of inherited properties. Since the property CommonContainer is just a simple reference property, which has now any special meaning and behavior associated at design-time. So I guess this is a Delphi related problem but not TsiLang.
May be it would help if you change the position of TsiLang that links to Form B some how and this will enforce its properties to be streamed in DFM better.
Hope this helps.
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