salc@aristotle.shearson.com (Sal Cataudella) (02/28/91)
Hi, I am using the XView PANEL_LIST object to display tabular information, and need to have the items in each column line up. However the default font, lucida-sans, is a proportionally spaced font and causes problems. My question is: How do I change the font ( to a fixed width font) of the PANEL_LIST object *only* without affecting other UI objects in the same PANEL? I have tried creating 2 adjacent panels, one that contains the PANEL_LIST and another containing the other UI objects. Setting the FONT attribute of the first panel has no effect; setting the FONT attribute of the second panel causes *all* UI objects in both panels to take on that font; I have tried the command line option -fn <fontname>, but this, of course, applies the new font attribute to all the windows in the application. Using a list object to display columns of information is a very common thing to do, and I'm sure that I must have missed something in the XView manual... Thanx, Sal -- Sal Cataudella Internet: salc@alfred.shearson.com UUCP: ...!uunet!slcpi!alfred!salc (212) 464-3871
hinrich.wrage@Germany.Sun.COM (Hine Wrage - Sun Germany Professional Services - Software Consulting - Munich) (03/01/91)
There are two non documented attibutes called PANEL_LIST_FONTS and PANEL_LIST_FONT. You will pass it as them as Xv_Font's. Hine