[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page

Top Document: Motif FAQ (Part 4 of 9)
Previous Document: 99) Can I customize the pointer cursor or insert position indicator
Next Document: 101) How can I change the font of text in the Text widget? I want


100) How can I change colours of text in the Text widget? I want


some of the text in one colour, some in another.
[Last modified: Feb 98]

Answer: In Motif 1.x, you can't.  Text stores an ordinary string, and points
where `highlights' of various types begin and end.  These highlights are all
the control you have over components of the text.

In the Motif 2.0 CSText widget, XmStrings may be different colors in the same
widget.

Note, however, that the CSText widget was dropped from Motif 2.1.

Ken Lee



Top Document: Motif FAQ (Part 4 of 9)
Previous Document: 99) Can I customize the pointer cursor or insert position indicator
Next Document: 101) How can I change the font of text in the Text widget? I want

Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page


[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
kenton@rahul.net (Ken Lee)

Last Update October 22 2009 @ 05:27 AM

Some parts © 2009 Advameg, Inc.