🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #36855

Re: XView, getting a hold of the scrollbars

#36855
From: Darren Austin
Date: Wed, 14 Feb 1990 21:12
23 lines
1658 bytes
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	              |
--------------------------------------+-------------------------------
Technical Details
Message-ID: <DMAUSTIN.90Feb14131222@vivid.sun.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!bionet!apple!sun-barr!newstop!sun!dmaustin
References: <1990Feb13.155031.4206@ux1.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <DMAUSTIN.90Feb14131222@vivid.sun.com>
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