Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uwm.edu!spool.mu.edu!news.cs.indiana.edu!msi.umn.edu!umeecs!zip!bagchi From: bagchi@eecs.umich.edu (Ranjan Bagchi) Newsgroups: comp.windows.x Subject: Forced Scrolling in a ViewPort? Message-ID: Date: 21 Apr 91 06:18:28 GMT Sender: usenet@zip.eecs.umich.edu (Mr. News) Organization: Recreational Creationists, Inc. Lines: 19 An application I'm working on has a List widget within a Viewport widget (both from the Athena set). What I'm being given headaches over is making the Viewport scroll so that a certain part of the List is shown. I'm having no trouble doing with this manually with the scrollbar, but I haven't been able to do it automagically. What Viewport.c seems to do when the Scrollbar tells it that it's supposed to scroll is move the ListWidget. I haven't had any luck doing this with XtGeometryRequest. thanks in advance...rj -- -------------------------------------------------------------------------------- Ranjan Bagchi - asleep...... | v,i,j,k,l,s,a[99]; bagchi@eecs.umich.edu | main() { ------------------------------- for(scanf("%d",&s);*a-s;v=a[j*=v]-a[i],k=i=s*k&&++a[--i]) ; } /* Osovlanski and Nissenbaum */ --------------------------------------------------------------------------------