Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mintaka!bloom-beacon!dont-send-mail-to-path-lines From: rick@pbi.COM (Richard M. Goldstein) Newsgroups: comp.windows.x Subject: Re: Get handle to a splitted Canvas Scrollbar??? Message-ID: <9102132013.AA07452@marvin.pbi.com> Date: 13 Feb 91 20:13:20 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 39 xv_get(canvas, OPENWIN_NTH_VIEW, 0) xv_get(canvas, OPENWIN_VERTICAL_SCROLLBAR) But it is impossible to get in touch with the second Scrollbar. have you tried getting the OPENWIN_VERTICAL_SCROLLBAR on the nth view (not the 0th view)? try this: /* * get scrollbar attached to first view */ view = (Xv_Window)xv_get ( canvas, OPENWIN_NTH_VIEW, 1 ); scrollbar = (Scrollbar)xv_get ( canvas, OPENWIN_VERTICAL_SCROLLBAR ); to traverse a hierarchy of views, try: OPENWIN_EACH_VIEW(canvas, view) scrollbar = xv_get( view, OPENWIN_VERTICAL_SCROLLBAR ); /* do whatever with scrollbar */ OPENWIN_END_EACH hope this helps. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % Richard M. Goldstein % % % % Perfect Byte, Inc. Phone: (402)554-1122 % % 7121 Cass St. Fax: (402)554-1938 % % Omaha, NE 68132 email: rick@pbi.com % % % % "If I knew what I was doing, % % d'ya think I'd be in Omaha?" % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%