Parent document is top of "Motif FAQ (Part 5 of 9)"
Previous document is "118) How do I best put a new set of items into a list?"
Next document is "120) Can I get a bitmap to show in a list item like I can in a"
119) Can I have strings with different fonts in a list?
[Last modified: Sept 95]
Answer: Yes. The strings are XmStrings. Each one can be created using a
different character set using a different font.
However, arjav@caip.rutgers.edu (ARJAV PARIKH) wrote:
If a string is added to the listbox, the font in the listbox overrides the
font set using XmCreateString. The Command widget label retains the font set
using XmCreateString. I read in the MOTIF FAQ that it is possible to add
strings with multiple fonts to the listbox. I learned from one of the tech
support persons that internal code of the listbox overrides the font.
Madhusudan Poolu (madhu@corp.sgi.com) replied:
You need to create a fontlist for your font and add it to your listbox widget
using XtVaSetValues ( wList, XmNfontList, yourFontList, NULL). This technique
can also be used to display multi-font strings in a list box.
Parent document is top of "Motif FAQ (Part 5 of 9)"
Previous document is "118) How do I best put a new set of items into a list?"
Next document is "120) Can I get a bitmap to show in a list item like I can in a"