LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Line in the Userinterface

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.

Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 11 of 17
(2,036 Views)

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

0 Kudos
Message 12 of 17
(2,028 Views)

Indeed I am familiar with how not to use the Alt+nnn facility Smiley Very Happy

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).

0 Kudos
Message 13 of 17
(2,026 Views)

Jared - I think splitters were only introduced after we bought our CVI 7.0...

JR

0 Kudos
Message 14 of 17
(2,026 Views)

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.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 15 of 17
(2,022 Views)

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

0 Kudos
Message 16 of 17
(2,018 Views)

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

 

Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 17 of 17
(2,018 Views)