[comp.windows.open-look] Scrolling List problems

tim@lia (Tim Bessie) (01/03/91)

I've got a couple questions for anyone who knows a bit about Xview:

1. When many Scrolling List calls are made in quick succession,
   programs tend to dump core or otherwise go wild.  Is there any
   way of avoiding this short of putting delays between calls?

2. The documented Xview bugs (such as inablility to modify
   the Scrolling List font, etc.) are getting in the way of
   much work.  Are there any patches/new versions of Xview, etc.
   out there that I can use?

3. Is there any software anyone has to replace/imitate Scrolling
   Lists that works better than the standard implementation?



     Help in this area would be greatly appreciated!  Thanx!


					- Tim Bessie

fgreco@dprg-330.govt.shearson.com (Frank Greco) (01/08/91)

> 
> >	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.