Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!csus.edu!ucdavis!csusac!unify!openlook!openlook-request From: fgreco@dprg-330.govt.shearson.com (Frank Greco) Newsgroups: comp.windows.open-look Subject: Re: Scrolling List problems Message-ID: Date: 7 Jan 91 20:56:44 GMT Lines: 31 > > > I have several apps that change the font of a scrolling list. > > While its not very intuitive on how to do this, its certainly > > do-able. Send me some email if you want a little ditty to > > do this. > > > > do you merely use the xv_set(list, PANEL_LIST_FONT, ...) > > this allows an individual font for each panel list item, > but is extremely expensive. The font is set in the GC > for each row drawn. This may be required if several different > fonts are required for the list, but I think in most cases, > people want to change the list font to a fixed width font > so that they may have multiple columns in the list. This is > not doable unless you use PANEL_LIST_FONT on each row, and > is too expensive for more than a few rows. > > There should be a way to set the font for the entire list > that performs as does the default. Brad, Set the font on the ***PANEL*** and the list will inherit it. Unfortunately so will any other panel item, so you may have to create other panels. I was told by Sun that they did it that way in XView, because the OPENLOOK spec requires items within a panel to have the same font; a requirement that I was also told may soon be relaxed. Frank G.