LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in UI to Code Converter

Hi,
I tried to convert all UIR's from a project to a code-File with the UI-to-Code Converter. I found out, that all bitmaps placed on the UIR are placed wrong when using the code-file. The LEFT and TOP Attribute of the bitmap-indicator must be set -3dots from the value it is set in the code-file and then it is shown right!
0 Kudos
Message 1 of 4
(2,696 Views)
I could reproduce the problem in LabWindows/CVI 7.0. I forwarded the information to R&D, hoping that it get fixed in the next version.
0 Kudos
Message 2 of 4
(2,696 Views)
Hello,

For those who have the same problem:
Our apprentice made a little tool to fix the bug.

Have fun, folks
0 Kudos
Message 3 of 4
(2,696 Views)
Hello Mr. Saller,

I found two more bugs in the UI to Code Converter.
1) When converting a panel to code, there are some variables declared which aren't always used in the code (Ex: int hMenubar, char *dataPtr). When compiling the file, a warning is generated that the variable isn't used (I know that I can turn this warning off but it is useful).
2) When converting to a c-File that is named for example "MyFile.uir.c" or "MyFile-1.c" with corresponding header files, compiling errors occur because of the preprocessor instruction:
#ifndef _MYFILE.UIR_INCLUDED
#define _MYFILE.UIR_INCLUDED
or
#ifndef _MYFILE-1_INCLUDED
#define _MYFILE-1_INCLUDED
The problem is because of the "." or the "-" in the Filename.
0 Kudos
Message 4 of 4
(2,696 Views)