battle@alphard.cs.utk.edu (David Battle) (01/06/90)
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