[comp.windows.open-look] Help with XView's PANEL_LIST

fgreco@govt.shearson.com (Frank Greco) (01/18/91)

> 1.  I'm xv_create(ing) a PANEL_LIST.  Whenever I insert or delete items,
>it appears as if OW redraws the entire list.  This causes a "flashing"
>that is very annoying (especially since I update the list frequently).
>I'm hoping that there is a way around this... Any clues?

Try this:

	xv_set(yourframe, FRAME_BUSY, TRUE, NULL);
	xv_set(yourlist, XV_SHOW, FALSE, NULL);

		...add stuff to list...

	xv_set(yourlist, XV_SHOW, TRUE, NULL);
	xv_set(yourframe, FRAME_BUSY, FALSE, NULL);


It's not a perfect workaround (the list disappears from
view until the item is added), but it allays the  s l o w
insert and gets rid of that annoying blinking.

Just as an aside, I was hoping that loading/shuffling the 
contents of the list myself and just setting the 
PANEL_LIST_STRINGS to point to a NULL-terminated array of 
char *'s  would be the answer (especially when the list's 
contents change frequently, eg, database retrieval).
But it doesn't seem to work.


Frank G.