View Full Version : Change the language
Esther López
16-Apr-2009, 04:35 AM
Hi to everybody:
Is there anyway to change the language of the controls? I have read that I have to use the ResourceFile property, but I do not know how and where I have to do it.
Thanks,
Esther
Renato Villa
16-Apr-2009, 05:41 AM
Hi Esther
In the cSigCjGlobalSetting.pkg add the following code
Obviously the path and the DLL are in my language.
You can create any object_setting for any controls of CJ
Object oSigCjGlobalSetting is a cSigCjGlobalSetting
Set peAutoCreate to acAutoCreate
Procedure onCreate
Forward Send onCreate
Set ComResourceFile to "C:\Programmi\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v12.1.0\Bin\Translations\SuitePro.ResourceIt.dll"
End_Procedure
End_Object
Object oSigCjDockingSetting is a cSigCjComDockingPaneGlobalSettings
Set peAutoCreate to acAutoCreate
Procedure onCreate
Forward Send onCreate
Set ComResourceFile to "C:\Programmi\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v12.1.0\Bin\Translations\SuitePro.ResourceIt.dll"
End_Procedure
End_Object
Object oSigCjCalGlobalSetting is a cSigCjComCalendarGlobalSettings
Set peAutoCreate to acAutoCreate
Procedure onCreate
Forward Send onCreate
Set ComResourceFile to "C:\Programmi\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v12.1.0\Bin\Translations\SuitePro.ResourceIt.dll"
End_Procedure
End_Object
//================================================== ============================
//End of Package - cSigCJGlobalSettings.pkg
//================================================== ============================
Hope this help
Esther López
16-Apr-2009, 06:05 AM
Sorry, but I do not have the "cSigCjComCalendarGlobalSettings" class. I have put it only for the "cSigCjGlobalSetting" class, but it seems that it still works as before.
Thanks,
Esther
Renato Villa
16-Apr-2009, 07:16 AM
Esther
i forgot to say that you also add on top in the cSigCjGlobalSetting.pkg the package that you want to use.
this is the content of my cSigCjGlobalSetting.pkg
Use SigCjW_DockingPane.pkg
Use SigCjW_Controls.pkg
Use SigCjW_Calendar.pkg
Use cSigCJImage_Manager_Mixin.pkg
Global_Variable Handle ghoSigCjGlobalSetting
Global_Variable Handle ghoSigCjPropEx
Class cSigCjGlobalSetting is a cSigCjComSuiteControlsGlobalSettings
Import_Class_Protocol cSigCJImage_Manager_Mixin
Procedure Construct_Object
Forward Send Construct_Object
Set peAutoCreate to acAutoCreate
Send Initialise_Image_Manager_Mixin
Move (Self) to ghoSigCjGlobalSetting
End_Procedure // Construct_Object
{ MethodType=Event }
Procedure OnCreate
Handle hoImageList
Variant vPropEx
//Handle hoGroups hoCollection hoImageList hoImageManager
//Variant vGroups vImagelist
Forward Send OnCreate
// Connect to Imagelist
Get phoImagelist to hoImageList
If (hoImageList <> 0) Begin
Send Create_Image_Manager // cSigCJImage_Manager_Mixin
End
Send Load_Images
//Create the Property Exchange Object
Get Create U_cSigCjComPropExchange to ghoSigCjPropEx
Get ComCreatePropExchange to vPropEx
Set pvComObject of ghoSigCjPropEx to vPropEx
End_Procedure // OnCreate
Procedure AddItem
End_Procedure
End_Class
Object oSigCjGlobalSetting is a cSigCjGlobalSetting
Set peAutoCreate to acAutoCreate
Procedure onCreate
Forward Send onCreate
Set ComResourceFile to "C:\Programmi\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v12.1.0\Bin\Translations\SuitePro.ResourceIt.dll"
End_Procedure
End_Object
Object oSigCjDockingSetting is a cSigCjComDockingPaneGlobalSettings
Set peAutoCreate to acAutoCreate
Procedure onCreate
Forward Send onCreate
Set ComResourceFile to "C:\Programmi\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v12.1.0\Bin\Translations\SuitePro.ResourceIt.dll"
End_Procedure
End_Object
Object oSigCjCalGlobalSetting is a cSigCjComCalendarGlobalSettings
Set peAutoCreate to acAutoCreate
Procedure onCreate
Forward Send onCreate
Set ComResourceFile to "C:\Programmi\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v12.1.0\Bin\Translations\SuitePro.ResourceIt.dll"
End_Procedure
End_Object
Regards
Esther López
16-Apr-2009, 08:18 AM
I think that my "SigCjW_Calendar.pkg" does not have the "cSigCjComCalendarGlobalSettings" class, because it does not find this class when I compile the program, and I have looked for it and it does not exist.
Thanks
Renato Villa
16-Apr-2009, 08:50 AM
Strange,
have you the last build of sigCj class?
Esther López
17-Apr-2009, 05:15 AM
Thank you very much, Renato. I have a previous version of SigCj and my class has another name. I have changed it and it works perfect.
Esther
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.