XmText and different colors

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
XmText and different colors

Submitted by Anonymous on Fri, 03/16/2001 - 00:00. Developers
Is there a way to display different colors at the same row in a XmText widget ?
Or do I need to create my own widget with support of XmString+selection+scrolling, and if so how?
Im trying to create a simple irc client with motif and I want to display the nick with one color and the msg with another color.

ICS_support

XmText supports a single display color. It doesn`t use the XmRenderTable features of the XmStrings. There used to be a widget which displayed multi-XmString-text, but it is not in Motif 2.1.n.

In this case, you are in luck because of the particular display characteristics of your text. I gather that you are probably formatting the text such that a name is on the left with a tab, then text on the right. In this case, you can use multiple widgets to do the display, as you will not need to do formatting across the entire text display.