home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / openloo / 3675 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.6 KB

  1. Path: sparky!uunet!ittc!dscott
  2. From: dscott@schlitz.ittc.wec.com (Dave Scott)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Re: Resizing Scrolling Lists
  5. Message-ID: <DSCOTT.92Sep1123623@schlitz.ittc.wec.com>
  6. Date: 1 Sep 92 16:36:23 GMT
  7. References: <23063@hacgate.SCG.HAC.COM> <DSCOTT.92Aug31171540@schlitz.ittc.wec.com>
  8. Sender: news@ittc.wec.com
  9. Organization: Westinghouse - Simulators Division, Pittsburgh, PA
  10. Lines: 38
  11. In-reply-to: dscott@schlitz.ittc.wec.com's message of 31 Aug 92 21:15:40 GMT
  12.  
  13.  
  14. In article <DSCOTT.92Aug31171540@schlitz.ittc.wec.com> dscott@schlitz.ittc.wec.com (Dave Scott) writes:
  15.  
  16. =>In article <23063@hacgate.SCG.HAC.COM> harding@maxwell.hrl (John Harding) writes:
  17. =>=>Can someone please explain how to have a Scrolling List resize accordingly
  18. =>=>when its underlying Control Area is resized.
  19.  
  20. [stuff deleted]
  21.  
  22. =>    xv_set (ip->my_scrolled_list,
  23. =>        XV_HEIGHT,
  24. =>        new_height - xv_get(ip->my_scrolled_list,XV_Y) - 20,
  25. =>        NULL);
  26.  
  27. Sorry about this.  It's wrong.
  28.  
  29. It works from some other objects but not for scrolled lists. :-(
  30.  
  31. It should be:
  32.  
  33.    xv_set (ip->my_scrolled_list,
  34.             PANEL_LIST_DISPLAY_ROWS,
  35.             (new_height - xv_get(ip->my_scrolled_list,XV_Y)) / 20,
  36.             NULL);
  37.  
  38. This will give the desired results.
  39.  
  40. If you change the font in which the items are displayed, you will want
  41. to adjust the '20' at the end to something more appropriate.
  42.  
  43. Sorry about the goof.
  44.  
  45. -dave
  46.  
  47. --
  48.  David A. Scott - das@ils.com   -OR-   dscott@ittc.wec.com (Westinghouse)
  49.  interLogic Software, Inc.             "The shortest distance between
  50.  (Currently on loan to Westinghouse)      two points is under construction."
  51.