Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!deimos.cis.ksu.edu!uxc!garcon!garcon.cso.uiuc.edu!grunwald From: grunwald@flute.cs.uiuc.edu Newsgroups: comp.windows.x Subject: Getting to viewport scrollbars Message-ID: Date: 14 May 89 16:59:26 GMT Sender: news@garcon.cso.uiuc.edu Distribution: comp Organization: University of Illinois, Urbana-Champaign Lines: 26 Hi, I recently added accelerators to TeXx2 to allow keyboard input (once I figured out that it was simple), but had a question about Viewports. I use a Viewport to hold a DviPage widget, and I wanted to get to the viewport scrollbars. The functionality I wanted was that holding down `space' would show you the other half of the display, if it's scrolled away. To do this, I needed to get to `viewport.vertical', the vertical scrollbar; however, there's no `clean' way to get that part of the composite, that I could deduce. So, I import ViewportP.h and just access the structure member for the XtInstallAccelerators call. Is this the kosher way to do it? Is there something I missed in the manual? Clues to the clueless appreciated. btw, texx2.8.6.tar.Z (texx2 subdirectory only) and uiuctex2.0.1.tar.Z (full distributed) are available from a.cs.uiuc.edu, in pub/TeX. This includes the hacks for accelerators, and an application defaults file. uiuctex2.0.1.tar.Z includes the 386i version of texsun. -- Dirk Grunwald Univ. of Illinois grunwald@flute.cs.uiuc.edu