home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / openloo / 3530 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  838 b 

  1. Path: sparky!uunet!kithrup!hoptoad!decwrl!csus.edu!csusac!unify!openlook!openlook-request
  2. Message-ID: <1nbffl5@openlook.Unify.Com>
  3. Newsgroups: comp.windows.open-look
  4. Distribution: world
  5. Date: Thu, 20 Aug 92 14:11:45 EDT
  6. From: fgreco@fis1026.shearson.com (Frank Greco)
  7. Sender: news@Unify.Com
  8. Subject: Re: Question on XView  scrolling list display
  9. Lines: 22
  10.  
  11. > Is there anyway to control where a scroll list is scrolled to under XView?
  12.  
  13.     But of course!
  14.  
  15. > I want to add a sorted item and then have the scroll list scrolled to the  
  16. > newly add item.
  17.  
  18.     This was asked some time ago.  Here's my little routine to do the
  19.     trick (from [my] memory):
  20.  
  21.     SetListStart(list, num)
  22.     Panel_list list;
  23.     int num;
  24.     {
  25.         return xv_set((Scrollbar)xv_get(list, PANEL_LIST_SCROLLBAR),
  26.             SCROLLBAR_VIEW_START,    num,
  27.             NULL);
  28.     }
  29.  
  30.     Frank G.
  31. =-=-=-=-=-=-=-=-=-=
  32.  
  33.