drapeau@sioux.Stanford.EDU (George Drapeau) (07/25/90)
I have a Scrolling List that I use to display some tabular data. The data looks something like this: 1. 15 16 2. 3000 4000 3. 15398 16080 (and so on) The problem is, the Panel_List used to make this Scrolling List seems to use a proportional font, so the formatting for the above data is screwy. In other words, it looks something like this: 1. 15 16 2. 3000 4000 3. 15398 16080 . . . 15. 4094 5051 (and so on) What I want to know is, can I change the font of the Scrolling List so that it uses a monospaced font instead of the proportional font, or is the Panel_List font part of the OPEN LOOK style guide and therefore unchangeable? Thanks in advance, George -- ______________________________________________________________________________ George D. Drapeau Internet: drapeau@jessica.stanford.edu Academic Information Resources Stanford University
aim@slotown.corp.sun.COM (Amy) (07/25/90)
>>The problem is, the Panel_List used to make this Scrolling List seems >>to use a proportional font, so the formatting for the above data is >>screwy. In other words, it looks something like this: >> >> 1. 15 16 >> 2. 3000 4000 >> 3. 15398 16080 >> . >> . >> . >> 15. 4094 5051 >>(and so on) >> >>What I want to know is, can I change the font of the Scrolling List so >>that it uses a monospaced font instead of the proportional font, or is >>the Panel_List font part of the OPEN LOOK style guide and therefore unchangeable? >> With XView 1.0 & 1.0.1, there were some bugs relating to setting the font on panel lists. However, with XView version2 (binary version just announced, source version available in near future) these bugs have been fixed and you can use the PANEL_LIST_FONT attribute to set the font on the list items (use xv_find to get a fixed width font). In V2 you can even set different fonts for individual items in the list.... I know this may not help you if your using 1.0/1.0.1 XView, but at least you know what the near future holds. Regards, Amy Moore aim@sun.com
tomj@eng.sun.COM (Tom Jacobs) (07/26/90)
>I have a Scrolling List that I use to display some tabular data. The >I have a Scrolling List that I use to display some tabular data. The >data looks something like this: > > 1. 15 16 > 2. 3000 4000 > 3. 15398 16080 >(and so on) > >The problem is, the Panel_List used to make this Scrolling List seems >to use a proportional font, so the formatting for the above data is >screwy. In other words, it looks something like this: > > 1. 15 16 > 2. 3000 4000 > 3. 15398 16080 >(and so on) > >What I want to know is, can I change the font of the Scrolling List so >that it uses a monospaced font instead of the proportional font, or is >the Panel_List font part of the OPEN LOOK style guide and therefore ? You're correct about OL style and fonts and that XView works hard to to help apps to conform. However, there is support in scrolling lists to set the fonts for either the list as whole or individual items. The attributes are PANEL_LIST_FONT and PANEL_LIST_FONTS. There were some bugs with this in the 1.0.1 (R4) release, but this has been fixed in our version 2 update which should make it to expo.lcs.mit.edu in the next week or so. These changes are also part of OpenWindows version 2. --- Tom Jacobs ARPA: tomj@eng.sun.com Sun Microsystems, Inc. UUCP: sun!tomj