10-20-2015 01:52 AM
Dear all,
I am upgrading an application using CVI2009 and I would like to use InsertTextBoxLine function.
InsertTextBoxLine (int panelHandle, int controlID, int lineIndex, char text[]);
I need to make clear two kind of lines for the user, green text lines and red text lines, so that the user can very easy see which info line is a good one and which one is a bad one.
Does anyone know how to insert the text line in a certain colour?
Thanks in advance,
Solved! Go to Solution.
10-20-2015 02:10 AM
Maybe you can switch from a textbox to a listbox, see here
Also I would consider using different colors for some users might suffer from a red-green color blindness
10-20-2015 02:16 AM
1) Maybe you can replace your textbox with a listbox, see here
2) Maybe you can choose different colors for some users might suffer from a red-green color blindness
10-20-2015 02:24 AM
Hi,
maybe you can replace your textbox with a listbox, see here
You might also consider two different colors because some users might suffer from a red-green color blindness
10-20-2015 02:27 AM
Unfortunately the textbox control does not permit to change the text color, as well as any other text attribute, on some part only of its content.
There are some alternatives you can use, the simplest being probably the use of a listbox instead: see the help for ItemLable parameter in InsertListItem comand to understand how to obtain this. Look also at <CVI samples folder>\userinf\listdelx.prj example program for an example what you can obtain with this control.
Alternatively you could use a table control, maybe more flexible but a bit more difficult to program with.
10-20-2015 06:34 AM
Obviously, there was a malfunction of Lithium, I had posted my replies a few times but they didn't show, only now, four hours later
10-20-2015 07:01 AM
Indeed there was nothing when I posted my comment!