|
Support
ActiveX / COM
Visual C++ / MFC
Customer Spotlight
Corporate Partners
Contact Sales
Call center available M-F 9:00 - 6:00 US Eastern Time. U.S. and Canada International Email |
Changing the Language for a Component
Author: Mike Palmatier
Posted: April 28, 2006
Environment: Visual Basic 6.0
Codejock Components allows you to support multiple languages with only a single line of code. Below are the 32 different languages currently supported:
Included with each Codejock component is 32 language resource files. This will translate all static strings that the developer can not change such as the text on the commandbars customize dialog. These files are installed to the "..\Codejock Software\Bin\Translations" folder. All you need to do is set the ResourceFile property of the component to the name of the resource file you want to use. This should be done in the Form_Initialize event.
Private Sub Form_Initialize() CommandBarsGlobalSettings.ResourceFile = "XTPResourceArSa.dll" DockingPaneGlobalSettings.ResourceFile = "XTPResourceArSa.dll" PropertyGridGlobalSettings.ResourceFile = "XTPResourceArSa.dll" ShortcutBarGlobalSettings.ResourceFile = "XTPResourceArSa.dll" End Sub |
