Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!usc!bbn!mephisto!utkcs2!alphard!battle From: battle@alphard.cs.utk.edu (David Battle) Newsgroups: comp.windows.x Subject: scrolling to a particular item Summary: how to scroll a viewport so a certain child is visible? Keywords: Athena widgets Message-ID: <1559@utkcs2.cs.utk.edu> Date: 5 Jan 90 20:59:56 GMT Sender: news@utkcs2.cs.utk.edu Reply-To: battle@alphard.cs.utk.edu (David Battle) Organization: CS Dept -- University of TN, Knoxville Lines: 44 I need an elegant way to scroll a viewport widget to a point where a particular child widget will be visible. The widget structure looks like the following: +---------------------------viewport----------------------------+ | | | +----------------------form--------------------------+ | | | | | | | +-------------------form----------------------+ | | | | | | | | | | +---------------------------------------------+ | | | | +-------------------form----------------------+ | | | | | | | | | | +---------------------------------------------+ | | | | +-------------------form----------------------+ | | | | | | | | | | +---------------------------------------------+ | | | | +-------------------form----------------------+ | | | | | | | | | | +---------------------------------------------+ | | | | +-------------------form----------------------+ | | | | | | | | | | +---------------------------------------------+ | | | | +-------------------form----------------------+ | | | | | | | | | | +---------------------------------------------+ | | | | +-------------------form----------------------+ | | | | | | | | | | +---------------------------------------------+ | | | | . | | | | . | | | | . | | | +----------------------------------------------------+ | | | +---------------------------------------------------------------+ There are *many* of the smaller sub-forms, and the viewport is smaller than the outer form widget. What I want to be able to do is given a Widget variable which represents one of the sub-forms, how can I make the viewport scroll to a point where that widget will be visible? -David L. Battle battle@battle.esd.ornl.gov