smith@darwin (Steven Smith) (02/13/90)
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. Steve Smith smith@origin.life.uiuc.edu
dmaustin@vivid.sun.com (Darren Austin) (02/15/90)
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 |
--------------------------------------+-------------------------------