Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!bionet!apple!sun-barr!newstop!sun!dmaustin From: dmaustin@vivid.sun.com (Darren Austin) Newsgroups: comp.windows.x Subject: Re: XView, getting a hold of the scrollbars Message-ID: Date: 14 Feb 90 21:12:22 GMT References: <1990Feb13.155031.4206@ux1.cso.uiuc.edu> Sender: news@sun.Eng.Sun.COM Distribution: comp Organization: Sun Microsystems, Mountain View Lines: 23 In-reply-to: smith@darwin's message of 13 Feb 90 15:50:31 GMT In article <1990Feb13.155031.4206@ux1.cso.uiuc.edu> smith@darwin (Steven Smith) writes: Does anyone know how to make use of the OPENWIN_VERTICAL_SCROLLBAR attribute using xv_get inside of a canvas repaint proc? I want to get hold of the scrollbar associated with the current canvas being repainted. The problem is that I can't seem to find the proper arguement for the xv_get() so that the scrollbar is returned. The O'Reilly book (and the OpenWINDOWS 1.0B) are very Xv_Opaque about how to accomplish this. Because a canvas is a subclass of Openwin, you can simply do a scrollbar = (Scrollbar) xv_get(canvas, OPENWIN_VERTICAL_SCROLLBAR, 0); Hope this helps, --Darren -- --------------------------------------+------------------------------- Darren Austin | Enough with safe and sane, Window Systems Group | It's time for dumb and Sun Microsystems, Mountain View | dangerous! dmaustin@sun.com | --------------------------------------+-------------------------------