home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / windows / openloo / 3767 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.6 KB  |  43 lines

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