home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!destroyer!caen!umeecs!umn.edu!csus.edu!csusac!unify!openlook!openlook-request
- From: fgreco@fis1026.shearson.com (Frank Greco)
- Newsgroups: comp.windows.open-look
- Subject: Re: Scrolling lists
- Message-ID: <b82fl5s@openlook.Unify.Com>
- Date: 27 Jul 92 22:23:20 GMT
- Sender: news@Unify.Com
- Lines: 26
-
- > My question has to do with scrolling lists. After I display
- > a list that is longer than the window can hold and scroll all
- > the way down to see the bottom of the list, if I try to display
- > a new list with fewer rows than the window can hold, none of the
- > rows in the new list gets displayed. I must scroll back up to see
- > those rows. Here is what I am doing:
-
- Try:
- xv_set((Scrollbar)xv_get(your-panel-list, PANEL_LIST_SCROLLBAR),
- SCROLLBAR_VIEW_START, 0,
- NULL);
-
- .its probably better to write a little wrapper around the above for
- portability:
-
- int SetListSB(list, item_num)
- Panel_list list; /* Your list */
- int item_num; /* Index of the "first" viewable row in your list */
- {
- return xv_set((Scrollbar)xv_get(list, PANEL_LIST_SCROLLBAR),
- SCROLLBAR_VIEW_START, item_num,
- NULL);
- }
-
- Frank G.
- =-=-=-=-=-=-=-=-=-=
-