Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!xanth!mcnc!thorin!rho!markham From: markham@rho.cs.unc.edu (Andrew Markham) Newsgroups: comp.windows.x Subject: Determining what area a viewport will be placed over?? (XAW) Message-ID: <13388@thorin.cs.unc.edu> Date: 10 Apr 90 20:23:48 GMT Sender: news@thorin.cs.unc.edu Lines: 62 I have a viewport whose child is a form widget and I would like to be able to tell the viewport where to position itself. For example, our form widget contains a list of times of the day along the left edge (from 12:00 AM - 11:30 PM). Whenever I draw the screen, the viewport is positioned at the top of the timelisting (i.e. 12:00), so I have to scroll down to 9:00. I would prefer the viewport to start out positioned at 9:00, instead of 12:00. In other words, I would like to change the default area to be clipped by the viewform. Current area shown upon startup: _______________________ > | 1 | | > |___| | > | 2 | | > |___| | > | 3 | | > |___| | > | 4 | | > |___| | | 5 | | |___| | | 6 | | |___| | | 7 | | |___| | | 8 | | |___|___________________| Area we want to show upon startup: _______________________ | 1 | | |___| | | 2 | | |___| | > | 3 | | > |___| | > | 4 | | > |___| | > | 5 | | > |___| | > | 6 | | > |___| | | 7 | | |___| | | 8 | | |___|___________________| If you have any questions, ask away. I need help!!! _|_o Andrew W. Markham | V \O Computer Science Department UNC-CH | |\ "Nobody in the world can cover my main man Michael Jordan. | / \ No, No, Nobody." -Mars Blackmon