07-12-2006 10:28 AM
The Alt+number way of entering characters only works with the numeric keypad keys, not with the numbers above the letter keys.
Perhaps that is the problem with entering the character values on the laptop. Many of them do not have a numeric keypad or use a shared-key setup for the numeric keypad keys.
07-12-2006 10:54 AM
Using the splitter is the easiest way to do this, as long as you only need vertical and horizontal lines (it can't be rotated). Drop a splitter in the UI editor, go into its edit dialog and change the frame thickness to 1 (if you just want a 1 pixel wide line), and use the paint tool in the quick edit window to change the color to black (or any other color). Then, to make sure that the splitter is not operable, uncheck the 'Operable as an Indicator' checkbox.
Now you have a simple line in the user interface.
- jared
07-12-2006 10:54 AM
Indeed I am familiar with how not to use the Alt+nnn facility
The laptop has a separate arrangement for emulating the keypad which works well with other applications - its just CVI that refuses to accept certain key codes in this way (although it will accept a subset of them, oddly).
07-12-2006 10:57 AM
Jared - I think splitters were only introduced after we bought our CVI 7.0...
JR
07-12-2006 11:06 AM
JR, I have succesfully installed applications with those lines on computers with only the runt-time engine installed. Either the run-time keeps together all ni fonts or the text messages are somewhat "static" in that they don't need the font installed. I haven't checked it and I don't have a machine with only the RTE available now to check.
Martin is probably right in addressing the absence of a real numeric keyboard on a laptop as the reason why you couldn't write the numeric code of characters and I agree with you that a paint image is more flexible when we have to draw a very particular user interface; the only disadvantage for it is that it widens the UIR file proportionally to the image dimensions.
I have not tried to change screen dimensions for my text lines (I too don't use resolution adjustment parameter in my uirs) but in my opinion those texts should not be affected by it. I will try and tell you the results.
07-12-2006 11:23 AM
I can insert characters using the Alt+nnn approach; its just that the characters that CVI displays do not agree with their codes as shown in charmap. For example, in order to obtain the character that charmap shows as Alt+199, I actually have to enter Alt+128. Similarly the Alt+201 character need Alt+144 entering. Characters less than Alt+128 all appear correctly. It makes it a bit difficult to figure out what to actually type - too much trial and error involved - I give up!
JR
07-12-2006 11:30 AM
There was some discussion a while back about UIR file incompatibility between CVI 7.0 and CVI 7.1 that mentioned that splitters were added with the 7.1 release. The issue there was somebody was trying to use a UIR file created in 7.1 with splitters in 7.0. Even though the UIR file version was the same, it was not backward compatible.
That thread can be found at http://forums.ni.com/ni/board/message?board.id=180&message.id=23422