07-24-2008 07:11 AM
> Also, just in case you didn’t know already, control fonts can be changed programmatically, using the SetCtrlAttribute() function. This should keep you from having to rebuild your entire UI with a new default font.
Does LabWindows/CVI have something like collection objects (like in Microsoft office)?
If it had I might have used construction like this for every panel:
for each <object> in <collection> do
...
end for
07-24-2008 07:32 AM
07-25-2008 08:08 AM
08-27-2008 08:44 AM
Something strange occurs with panel localization.
I note that this problem occurs only with controls of "message text" type.
On CRMS_File_man_set.JPG the english version of panel is shown.
On CRMS_File_man_set_01.JPG the translated version of panel is shown as it displays in CVI GUI Localization Utility.
On CRMS_File_man_set_02_1.JPG the translated version panel is shown as it displays in the running program.
There are the appropriate strings of ui_Russian.lwl file (The file is written correctly).
[FSAVE_TEXTMSG_3]
Type = 4
Flags = "@f"
Default = "Запись данных"
[FSAVE_TEXTMSG_9]
Type = 4
Flags = "@f"
Default = "Выбор источника данных"
[FSAVE_TEXTMSG_11]
Type = 4
Flags = "@f"
Default = "Усреднение данных"
Why doesn't this panel display correctly in the running program?!!
08-27-2008 08:50 AM - edited 08-27-2008 08:51 AM
Addition:
I made this steps :
1) Recreated the ui_Russian.lwl file
2) Removed the old file from the project and added the new one
3) Recreated Debuggable Executable
4) Run the program (Shift+F5)
08-28-2008 03:28 AM
08-28-2008 02:21 PM
Hello stskr,
How are you invoking the LocalizePanel( ) function? I have tried this on my own machine, creating a .lwl file with the localui.exe utility, verifying that the changes occur at run-time, and then changing the .lwl file and verifying once again that the changes take place at run-time. I included several different controls on the UIR (including the "Text Message" type), and did this in both versions 8.0 and 8.5 of LabWindows/CVI. Have you deleted/added controls to the .uir file since creating the .lwl? Also, are you exporting the .lwl and .lwd files from the localui.exe utility after making the necessary translations?
If you have deleted/replaced any of the controls on the UI, then you will need to re-create the .lwl and .lwd files with the utility...
08-29-2008 01:47 AM
Have you deleted/added controls to the .uir file since creating the .lwl?
Also, are you exporting the .lwl and .lwd files from the localui.exe utility after making the necessary translations?
If you have deleted/replaced any of the controls on the UI, then you will need to re-create the .lwl and .lwd files with the utility...
I did the following steps:
1) Recreated controls in the panel in the .uir file.
2) Saved this .uir file
3) Loaded the .uir file into the localui.exe utility
4) Imported the old lwd files
5) Added translations in Russian of new texts
6) Exported the lwd and the .lwl file
7) Added the .lwl file into LabWindows/CVI
😎 Builded .exe file
9) Ran the program (Shift+F5)
Then I see now:
1) Some of translated texts replace other controls!
2) In English version of the program I see the new controls in Russian inspite of other controls are in English!
I use 8.0.1 version of LabWindows/CVI.
09-02-2008 12:36 PM