01-05-2009 02:18 AM
Hello,
I'm working on a project, and I need to install my program on the PC of the future users of my software.
I've made a distribution kit which works well, and my software works well too. The main problem is that some of my panels contain some differences between my developpement version (I work with CVi 8.5) and the users version, whereas I've not forgotten to watch out the resolution of my application.
For exemple, I resize an array on my developpement PC. This array contains 3 rows. I create my distribution kit and I install the soft on the user's PC. I launch the executable and my array contains always 3 rows and a half...
The developpement PC works on Windows XP SP3, and the users's PC on windows 2000. The users's PC have the 8.5 version of the Labwindows run time.
I wonder if there is a tool that allow the developper to edit an UIR file without CVI, so I could resize all my controls on the user's PC....?
Thanks
01-05-2009 03:05 AM
01-06-2009 05:41 AM - edited 01-06-2009 05:43 AM
Hi,
First thanks for your precedent answer. I've noticed that all my UIR files are made with Font like NiDialog or NiDialogMetafont, and these fonts in size 13 are bigger than Times New Roman in size 13 for exemple.
So your precedent explanation is very insteresting for me. I've just one question : how can I Install the NI fonts on my target. In the CVI directory, I've found a subdirectory called fonts, but it contains only two fonts (ni7seg & nisystem). I've explored the fonts directory of the settings panel of Windows and I've made several searches, but i've never found this fonts).
Is there a special procedure to install these NI... fonts ont the target ? (I could change the police of my panels in CVI, but I would be obliged to modify all my 50 panels...)
Thanks
01-06-2009 07:00 AM
Hi,
Here is an excerpt from help document about the NI fonts ("predefined fonts" as named by the CVI help):
"...contain typeface information only. Each value is an alias to an operating system font typeface... Therefore, a predefined font can appear differently on two computers with the same screen resolution."
So it is normal that you cannot find them in the system fonts folder.
In order to change the fonts of all the controls and panels you can first convert your .uir file to a .tui file using Options>Save in Text Format from the menu. Then use the old find/replace tool in WordPad, or a text editor of your choice.
I think that will solve your problem for good.
01-06-2009 10:19 AM - edited 01-06-2009 10:22 AM
Hi SebAssystem,
Indeed as ebalci said You can also look for the font specified in the Windows registry Here you can compare the value in your machine with that of the target, and you will be able to modify the registry in order to use the font you want : HKEY_CURRENT_USER\Software\National Instruments\CVI\8.5\SourceFont.
Regards,