Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!ucdavis!csusac!unify!openlook!openlook-request From: klg!ed@Canada.Sun.COM (Edward Lycklama - KL Group Inc.) Newsgroups: comp.windows.open-look Subject: Re: Help! with scrolling lists and xv_create Message-ID: Date: 4 Jun 91 14:34:39 GMT Sender: news@Unify.Com Lines: 31 > > In article you write: > > > >Can someone post a an example of code to use PANEL_LIST_INSERT & > >PANEL_LIST_DELETE? There are two problems: 1) intense flashing > >and 2) after using PANEL_LIST_DELETE in descending order as suggested > >in O'Reilly, I get bus errors. > > It sure would have been nice to have some sort of batching > for scrolling lists - eh? XView doesn't really provide any > support for this. The recommended way to do this is to set XV_SHOW > to FALSE on the list, then do the update, the set XV_SHOW to TRUE. > > Brent Browning Internet: brentb@Eng.Sun.COM > Sun Microsystems, Inc UUCP: ...!sun!brentb > 2550 Garcia Ave. MTV 01-40 Phone: (415) 336-5573 > Mountain View, CA 94043 > Actually, there is a way to batch request to scrolling lists; just set PANEL_PAINT to PANEL_NONE while inserting/deleting, and no updates occur. When you are done, set PANEL_PAINT to PANEL_CLEAR, and the new list is drawn. Ed Lycklama KL Group Inc. | Phone: (416) 594-1026 Ext. 22 134 Adelaide St. E, Suite 204 | Fax: (416) 594-1919 Toronto, Ontario, M5C 1K9 | UUCP: sun!suncan!klg!ed CANADA