home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ittc!dscott
- From: dscott@schlitz.ittc.wec.com (Dave Scott)
- Newsgroups: comp.windows.open-look
- Subject: Re: Resizing Scrolling Lists
- Message-ID: <DSCOTT.92Sep1123623@schlitz.ittc.wec.com>
- Date: 1 Sep 92 16:36:23 GMT
- References: <23063@hacgate.SCG.HAC.COM> <DSCOTT.92Aug31171540@schlitz.ittc.wec.com>
- Sender: news@ittc.wec.com
- Organization: Westinghouse - Simulators Division, Pittsburgh, PA
- Lines: 38
- In-reply-to: dscott@schlitz.ittc.wec.com's message of 31 Aug 92 21:15:40 GMT
-
-
- In article <DSCOTT.92Aug31171540@schlitz.ittc.wec.com> dscott@schlitz.ittc.wec.com (Dave Scott) writes:
-
- =>In article <23063@hacgate.SCG.HAC.COM> harding@maxwell.hrl (John Harding) writes:
- =>=>Can someone please explain how to have a Scrolling List resize accordingly
- =>=>when its underlying Control Area is resized.
-
- [stuff deleted]
-
- => xv_set (ip->my_scrolled_list,
- => XV_HEIGHT,
- => new_height - xv_get(ip->my_scrolled_list,XV_Y) - 20,
- => NULL);
-
- Sorry about this. It's wrong.
-
- It works from some other objects but not for scrolled lists. :-(
-
- It should be:
-
- xv_set (ip->my_scrolled_list,
- PANEL_LIST_DISPLAY_ROWS,
- (new_height - xv_get(ip->my_scrolled_list,XV_Y)) / 20,
- NULL);
-
- This will give the desired results.
-
- If you change the font in which the items are displayed, you will want
- to adjust the '20' at the end to something more appropriate.
-
- Sorry about the goof.
-
- -dave
-
- --
- David A. Scott - das@ils.com -OR- dscott@ittc.wec.com (Westinghouse)
- interLogic Software, Inc. "The shortest distance between
- (Currently on loan to Westinghouse) two points is under construction."
-