Parent document is top of "Motif FAQ (Part 5 of 9)"
Previous document is "119) Can I have strings with different fonts in a list?"
Next document is "121) Can I have items with different colors in a list?"

120) Can I get a bitmap to show in a list item like I can in a

Label?  I want to place a bitmap along with some normal text in my list items.

[Last modified: Jan 96]

Answer:  Andrew Lister (lister@bain.oz.au) writes:  The XbaeMatrix widget
allows a bitmaps in a cell.  There will be support for colour pixmaps to be
displayed in version 4.4 which should be available very soon. (The XbaeMatrix
can be made to look and behave like a list widget.  The widget is compatible
with Motif 1.2 and Motif 2.0.)  You can get the latest version of XbaeMatrix
from the directory:
        ftp://ftp.x.org/contrib/widgets/motif/

Alan Peery (peery@isc.tamu.edu) writes:  Motif 2.0 introduced the "container"
widget, which offers 2-D icon and text layout similar to that found in many
file management programs.  It could probably be used as a 1-D list widget
also.

A previous source wrote: In Motif 1.x, you cannot do this.  The list contains
XmStrings, and these only allow text in various character sets. The workaround
is to define your font containing the icons you want. Then you can create a
fontlist containing your icon font and the font you want the text in, and then
make your items multi-segment XmStrings where the first segment contains the
code of the icon you want with a charset that matches the icon font in your
fontlist and the second segment with a charset matching the text font.

Parent document is top of "Motif FAQ (Part 5 of 9)"
Previous document is "119) Can I have strings with different fonts in a list?"
Next document is "121) Can I have items with different colors in a list?"