home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.open-look:3688 alt.toolkits.xview:816
- Newsgroups: comp.windows.open-look,alt.toolkits.xview
- Path: sparky!uunet!destroyer!ncar!csn!news.den.mmc.com!doehr
- From: doehr@magellan.den.mmc.com (Brett B. Doehr)
- Subject: Re: XView 3: PANEL_FONT for a scrolling list
- Message-ID: <1992Sep1.231251.6648@den.mmc.com>
- Sender: doehr@magellan (Brett B. Doehr)
- Nntp-Posting-Host: magellan.den.mmc.com
- Organization: Martin Marietta Astronautics Group
- References: <1992Sep1.022032.25886@sq.sq.com>
- Date: Tue, 1 Sep 1992 23:12:51 GMT
- Lines: 22
-
- In article <1992Sep1.022032.25886@sq.sq.com>, lee@sq.sq.com (Liam R. E. Quin) writes:
- |> OK, how do I set the font for an entire scrolling list in XView 3, not
- |> just an item at a time? I can set the font of the parent panel, and this
- |> affects the list. I've even tried setting the set_font element in the
- |> (private) Panel_list_info struct, but this doesn't work.
-
- This isn't quite what you want, but may be the "best" one-at-a-time solution:
-
- Xv_font font1; // Set font1 to desired font...
-
- xv_set(panel_list, PANEL_LIST_FONTS, font1, font1, [...], NULL, NULL);
-
- Basically, PANEL_LIST_FONTS takes a NULL-terminated list of fonts that
- it assigns in turn to each row in the list. So, it only takes one xv_set
- and one attribute within the xv_set, but you must repeat the name of the
- font once for each row. This at least was the way of XView 2.0, don't
- know if there is a better way in XView 3.0.
-
- ---------------------------------------------------------------
- | Brett B. Doehr Martin Marietta Astronautics Group |
- | Voice: +1-303-977-1504 P.O. Box 179 Denver, CO 80201 USA |
- | Fax: +1-303-977-1530 Internet: doehr@den.mmc.com |
-