Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!ucdavis!csusac!unify!openlook!openlook-request From: klg!ed@Canada.Sun.COM (Edward Lycklama - KL Group Inc.) Newsgroups: comp.windows.open-look Subject: Re: XView panel list question? Message-ID: <5zdvwtn@openlook.Unify.Com> Date: 15 Mar 91 14:21:43 GMT Lines: 35 > From c-art!dciem!utcsri!relay.cs.toronto.edu!uunet.uu.net!owner-openlook Thu Mar 14 19:50:47 1991 > Date: Thu, 14 Mar 1991 14:56:43 -0500 > From: c-art!dciem!fgreco%govt.shearson.com (Frank Greco) > To: openlook@unify.com > Subject: XView panel list question? > > > SunOS 4.0.3, SS1+, OW 2.0 and XView/devGUIDE... > > XViewers, > > Is there a easy way of knowing what the > first *displayed* item (not the selected item) > in a panel list is? > > I didn't see an attribute for this in the XVPM. > > > Thanks, > > Frank G. > One way of doing this would be to get the SCROLL_VIEW_START of the scrollbar attached to the scrolling list. scrollbar = xv_get(list_item, PANEL_LIST_SCROLLBAR); first_index = (int) xv_get(scrollbar, SCROLLBAR_VIEW_START); Ed Lycklama KL Group Inc. | Phone: (416) 594-1026 134 Adelaide St. E, Suite 204 | Fax: (416) 594-1919 Toronto, Ontario, M5C 1K9 | UUCP: sun!suncan!klg!ed CANADA