Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!sun-barr!newstop!male!dustbin!harry From: harry@dustbin.uk.sun.com (Harry Protoolis - Sun EHQ) Newsgroups: comp.windows.open-look Subject: Re: Scrolling Lists and their fonts Keywords: XView, Scrolling Lists Message-ID: <6090@male.EBay.Sun.COM> Date: 6 Apr 91 15:08:46 GMT References: <1991Apr5.170330.5936@herbert.uucp> Sender: news@male.EBay.Sun.COM Reply-To: harry.protoolis@uk.1.com Organization: Sun Microsystems Europe Inc Lines: 42 In article <1991Apr5.170330.5936@herbert.uucp>, chris@herbert.uucp (Chris Greve) writes: |> |> Hi, |> |> I am having trouble with Scrolling Lists under XView. I need a |> fixedwidth font and the code below is not working. I have looked in |> all of the XView programs that I have source to, and none of them sets |> the list font. stuff deleted ... I am posting this 'cause it's the n'th time I have answered this question (after asking it myself in a similar forum ... :-)) PANEL_LIST_FONT works on individual list entries, not on the whole list. You must set it for each list item. I suspect this is a bug. Try this everywhere you create a list entry, given: font = (Xv_Font)xv_find(frame, FONT, FONT_FAMILY, FONT_FAMILY_DEFAULT_FIXEDWIDTH, NULL); each entry creation becomes: xv_set(plist, PANEL_LIST_INSERT, row, PANEL_LIST_FONT, row, font, XV_NULL); This is a pain, but it does work. Hope this helps, Harry -- (smart Internet mailers) harry.protoolis@uk.sun.com (smart JANET mailers) harry.protoolis@sun-microsystems.co.uk (dumb uucp mailers) ...!sun!sunuk!harry.protoolis 'When I give food to the poor they call me a saint. When I ask why the poor have no food they call me a communist.' - Dom Helder Camara