TsiLang not working on DataModule in XE2

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
gabr42
Posts: 2
Joined: Tue Jan 22, 2013 4:29 pm

TsiLang not working on DataModule in XE2

Post by gabr42 »

TsiLang (and other TsiLang Components Suite components) are not working correctly if I put them on a DataModule in Delphi XE2. In D2007 they work just fine.

Steps to reproduce:
- Create new visual application.
- Create new data module.
- Drop a TsiLang component on a data module.
- Save everything.
- Close the data module.
- Reopen the data module.

Delphi reports:

=================================
Error Reading form: 'DataModule153'
------------------
Class TsiLang not found. Ignore the error and continue? NOTE: Ignoring the error may cause components to be deleted or property values to be lost.
=================================

If I ignore the error, TsiLang component is deleted from the form.

The same scenario works just fine in Delphi 2007.

I'm using the latest TsiLang (6.5.5) and have verified this behaviour on two computers, both running Delphi XE2 Update 4 Hotfix 1.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Hello,

Sorry for the delay. May be you didn't set ClassGroup property of DataModule to "Vcl.Controls.TControl"? And IDE removes TsiLang as it is VCL based class from the datamodule.
Best regards,
Igor Siticov.
gabr42
Posts: 2
Joined: Tue Jan 22, 2013 4:29 pm

TsiLang not working on DataModule in XE2

Post by gabr42 »

That was it! Thanks a lot!
Post Reply