hwI3DViewCtrl CenterView
Moves the selected location to the center of the graphics area.
Syntax
viewControl_handle CenterView
Application
HyperView Tcl Modify
Description
Example
hwi OpenStack;
variable t [expr rand()];
catch {
hwi GetSessionHandle sess$t;
sess$t GetProjectHandle proj$t;
proj$t GetPageHandle page$t [proj$t GetActivePage];
page$t GetWindowHandle win1$t 1;
page$t GetWindowHandle win2$t 2;
win1$t GetViewControlHandle vc1$t;
vc1$t CenterView;
}
hwi CloseStack;
Error
This command should not return any errors.