Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

The use of "\033" escape codes for string formatting within CVI listbox objects

Hi guys:
 
I checked on the example that comes with CVI called "listdelx.prj" about the special formatting code for strings inside listbox objects. I understood the use of \033 for left and right indentation, vertical lines, etc. Well, for some reason left and right indentation work, but center does not  after using exactly the same string to test the three alternatives in a *.uir that I made to play with this (Why?!!)
 
I want to know where can I get a COMPLETE (or as large as possible) list of all \033 escape codes available (and their meaning if stated, obviously). I don't think that the few ones shown in the CVI examples must be the only ones defined.
 
Is it there a way to include a Tab? Underline? Bold? Italics? Mixed fonts? (What if I want to write units like us but use the real 'micro' from the Greek symbols instead of the latin 'u'?) How much formatting is really possible in a single line?
 
I guess that there is more to do, judging from the referred CVI example that mixes justifications, vertical lines, and even color formatting all together. If anyone can help me with this, I'll be very grateful. I wonder why this topic is practically unexistent in CVI help except for those short examples, when it can be of great help when someone wants to make nice visually appealing interfaces.
 
If anyone knows about any http link to this topic, that can work too.
 
Regards, Jose.
0 Kudos
Message 1 of 3
(3,513 Views)
Hi Jose,

The list of codes available are located in the CVI Help under InsertListItem. There are no other codes available other than the ones listed there, mainly due to the fact that the codes are meant for creating columns and changing color.

For text formatting within the list box, see the section in the Help titled 'List Box Control Attributes'. You have control over the text (including font, color, bold, underline, italics, etc) from these attributes.
Test Engineer - CTA
0 Kudos
Message 2 of 3
(3,502 Views)

Thanks to Jon M for the help on the "\033" listbox string formatting topic.

Regards, Jose.

0 Kudos
Message 3 of 3
(3,495 Views)