home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!cs.utexas.edu!sun-barr!news2me.ebay.sun.com!cronkite.Central.Sun.COM!sixgun.East.Sun.COM!newscan!theglove!mario
- From: mario@theglove.Canada.Sun.Com (Mario Dorion # extra topping $1.75)
- Subject: Re: Very slow scrolling lists? HELP!!!!!!
- Message-ID: <1992Sep9.132836.1814@newscan.canada.sun.com>
- Sender: news@newscan.canada.sun.com
- Nntp-Posting-Host: theglove.canada.sun.com
- Reply-To: mario@theglove.Canada.Sun.Com
- Organization: Sun Microsystems du Canada
- References: <23205@hacgate.SCG.HAC.COM>
- Date: Wed, 9 Sep 1992 13:28:36 GMT
- Lines: 29
-
- In article 23205@hacgate.SCG.HAC.COM, dover@maxwellexpl.hrl.hac.com (Barbara Dover) writes:
- >
- >
- >I am building a GUI with 64 scrolling lists on the same Popup window.
- >Each of these scrolling lists has 130 elements. My problem is that
- >when these scrolling lists are updated the system slows down
- >dramatically.
- >
-
- What do you mean by updated? If you mean inserting/deleting many items
- at once, you can speed things up considerably if you de-activate the
- panel(s) before the update and re-activate it afterward. This tells
- Xview not to redraw the panel after every single update operation:
-
- xv_set(my_panel, PANEL_INACTIVE, TRUE, 0);
- /* massive panel update */
- xv_set(my_panel, PANEL_INACTIVE, FALSE, 0);
-
- You can also save A LOT OF TIME when creating your lists if you use
- PANEL_LIST_INSERT_STRINGS to insert a large number of strings in a
- single xv_set call instead of issuing a number of individual
- PANEL_INSERT_STRING xv_set calls.
-
- I hope these help. Please let me know.
-
- Mario Dorion - Sun Montreal
- Quayle in 1996 -- Just say noe.
-
-
-