Path: utzoo!dciem!c-art!klg!ed From: ed@klg.UUCP ( KL Group Inc.) Newsgroups: comp.windows.x Subject: Re: Help with XView`s PANEL_LIST Message-ID: <121@klg.UUCP> Date: 24 Jan 91 15:09:33 GMT References: <9101231625.AA03709@fis1.shearson.com> Reply-To: ed@klg.UUCP (Edward Lycklama - KL Group Inc.) Organization: KL Group Inc., Toronto Lines: 38 In article <9101231625.AA03709@fis1.shearson.com> fgreco@govt.shearson.COM (Frank Greco) writes: >> >> > 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? >> >> >> I got this function from the net. Original author is not knowned. It sets the >> contents of a scrolling list from a list of string in an argc-style parameter. >> >> Since it update the entire list at once, there is no "flashing" for each >> insert or delete. (There is only 1 re-draw of the list). >> Another solution is to use the PANEL_PAINT attribute; every time you insert an item into the list, do this: for (i=0; i