LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display Text with different background colors?

Hi,

i want to display text with different background colors for
some characters or words, what is the best way to realize this feature?

I found an ActiveX Control (Rich Text Control) which will be able
to do this work, but i don't know how complicate an adaption in LabVIEW
could be.
Did anyone already realized it?

Regards,
Sunny
0 Kudos
Message 1 of 6
(3,521 Views)
in LabVIEW you can only change the backround color for the whole text 8see the attached example.
A workaround could be to split the text to multiple indicators.
0 Kudos
Message 2 of 6
(3,495 Views)
Even if this was possible with an LV string control, it would still be accomplished in the same way that you use the AX control (use the property node to select the text and change its color), so the AX control should be the easy solution.

___________________
Try to take over the world!
0 Kudos
Message 3 of 6
(3,487 Views)
Hi,

i'm not so experienced in using ActiveX Controls realized as OCX files.
How are these controls added to the frontpanel of my vi?

Regards,
Sunny
0 Kudos
Message 4 of 6
(3,477 Views)
Very simple.
Add an AX container on the FP (From the containers palette). Right click and select Insert AX Control. Find the RTF control on the list. The AX control appears as a light blue terminal on your diagram which you can wire into a property node (for properties) or an invoke node (for methods). Both can be found in the Communication>>ActiveX palette. You can have a series of property nodes to select the text and color it.

___________________
Try to take over the world!
Message 5 of 6
(3,471 Views)
Hi Sunny,
As mentioned in this thread, it is not possible to change the background color of characters or words inside of a string control or indicator. However, it is possible to change the font color, bold, italics, underline and bold setting. If the desired outcome is to highlight a section of a string control, then changing the color and making a section bold may be enough. Have a look at the attacthed example.
Brian

Message Edited by brian175 on 06-03-2005 11:39 AM

Brian Gangloff
DataAct Incorporated
Message 6 of 6
(3,465 Views)