LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Color single row in textbox

Hi!

 

I want to color a row of text in a text box, much like these questions:

color of text in a text box - NI Community (2006)

How can I display various colored strings in a text box in a single row? - NI Community (2001)

 

My goal is to make a box for status messages to appear in. Some are just status updates, others are actual error messages/warnings. I'd like the error messages to appear red in order to draw attention to them, but I want the other already written messages to remain black. I'd like to avoid a listbox because of the visual effect of it having "rows", and because it's not possible for the user to select the text in the listbox. It's also very desirable that text box autoscrolls to the last message.

 

Is it possible yet?

0 Kudos
Message 1 of 2
(1,020 Views)

The situation is not changed since the discussions you have linked and available solutions are already given and described there: use a listbox or a table control.

Given the situation you have described it seems to me that the listbox is a better and easier approach, but you may want to experiment with both of them and adopt the one you feel more confortable with.



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 2 of 2
(976 Views)