07-16-2008 04:18 AM
07-16-2008 11:20 AM
07-16-2008 12:09 PM - edited 07-16-2008 12:10 PM
07-17-2008 04:19 AM
I faced one more problem. In some panels some fonts are used that are not represented in Russian like NIDialog, NIApp etc..
So I have translated all texts in CVI GUI Localization Utility in Russian, but the texts in such fonts are displayed in English.
How can I replace all fonts into smth like Arial or Times New Roman fonts in one place (or may be function)?
(I don't want to remake all the controls manually!)
07-17-2008 04:51 AM
If you are using CVI 8 or later you can select multiple controls and edit the common attributes of them in one step only. This works for controls of the same type (i.e. all buttons can be edited at a time, next string controls, numeric controls and so on).
If you re using a previous version of cvi there is no built-in functionality to obtain this. One way of avoiding manual editing of each control is to:
07-17-2008 07:11 AM
07-17-2008 07:27 AM - edited 07-17-2008 07:34 AM
07-17-2008 08:30 AM
Could be this problem because of using Predefined fonts such as VAL_DIALOG_FONT in .tui file?
I tried to change strings in userint.h such way
#define VAL_DIALOG_FONT "Courier"
instead of
#define VAL_DIALOG_FONT "NIDialog"
But it doesn't help.
07-18-2008 12:46 PM
Hello stskr,
Since you didn’t see any change in behavior after changing the header file’s VAL_DIALOG_FONT, odds are you are changing the wrong thing (either the wrong constant or the wrong header file). I would recommend trying out what Roberto Bozzolo said in his previous post:
You could be setting an incorrect font: I suggest you create a small panel with a few controls with correct fonts and a few with built-in fonts like NI DIalogue: examining the generated tui file you can see the exact spelling of the font names and operate consequently on your panels.
The key is to find out exactly what must be changed in the tui file. If you create a simple small panel, as suggested above, this will be easier to do.
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.
07-24-2008 06:55 AM