|AHELP for CIAO 4.5 ChIPS v1||
Repositions the frame within the window.
reposition_frame([id], x1, y1, x2, y2)
- id - an optional ChipsId structure containing values to modify the currency state for the command or a string id to modify the specified window or plot.
- x1, y1, x2, y2 - the location of the lower left (x1,y1) and upper right (x2,y2) corners of the frame. The coordinates are in Window Normalized Coordinates.
The reposition_frame command is used to modify the location of the plot within the frame. The location is specifed as lower left (x1,y2) and upper right (x2,y2) values. The values are in Window Normalized Coordinates with (0,0,1,1) representing the entire window.
Repositioning the frame may cause the aspect ratio to change. The objects in the frame are adjusted accordingly.
Depending on the viewing mode of the window, the repositioned values may not be readily apparent. If the window is in placed mode, the changes should be visible, unless the frame is obstructed by another frame. If in view_single_mode, the changes will only be noticeable if the aspect ratio of the frame changes, since the frame is enlarged to fill the window based on the aspect ratio.
If the frames have been tiled, changes will not appear unless the tile command is issued again. As with view_single_mode, only a change to the aspect ratio will be noticeable.
This is different than the move_frame command, which cannot change the aspect ratio of the frame. Refer to "ahelp move_frame" for more information.
chips> add_frame('border.visible=1') chips> reposition_frame(.2,.3,.7,.8)
Add a frame encompassing the whole window from (0,0) to (1,1). Reposition the frame to the area between (.2,.3) and (.7,.8).
chips> id = ChipsId() chips> id.frame='frm2' chips> reposition_frame(id,.25,.25,.75,.75)
A ChipsId structure is created and the id.frame field is set to "frm2". reposition_frame is called with the ChipsId so that the frame covers the area of the window from (.25,.25) to (.75,.75).
See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.