fgreco@govt.shearson.com (Frank Greco) (03/15/91)
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.
harry@dustbin.uk.sun.com (Harry Protoolis - Sun EHQ) (03/15/91)
Frank, Try item = (Panel_item) xv_get(panel, PANEL_FIRST_ITEM) ... p 497, XView Programming Manual Dan Heller O'Reilly & Assoc. Fourth Printing - Oct 1990 Regards Harry In article <awived5@openlook.Unify.Com>, fgreco@govt.shearson.com (Frank Greco) writes: |> Is there a easy way of knowing what the |> first *displayed* item (not the selected item) |> in a panel list is? -- (smart Internet mailers) harry.protoolis@uk.sun.com (smart JANET mailers) harry.protoolis@sun-microsystems.co.uk (uucp) ...!sun!sunuk!harry.protoolis 'When I give food to the poor they call me a saint. When I ask why the poor have no food they call me a communist.' - Dom Helder Camara
ed@Canada.Sun.COM (Edward Lycklama - KL Group Inc.) (03/15/91)
> 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