home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / openloo / 3688 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.7 KB

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