Moves the given window to the location specified by the given coordinates.
If you have specified the form property Coordinate System as Character, then your x, y coordinates are specified in characters. If the Coordinate System is specified as Real, then your x, y coordinates are specified in the real units you have selected--pixels, inches, centimeters, or points.
FUNCTION MOVE_WINDOW
(window_id Window,
x NUMBER,
y NUMBER);
FUNCTION MOVE_WINDOW
(window_name VARCHAR2,
x NUMBER,
y NUMBER);
Built-in Type unrestricted function
Enter Query Mode yes
/*
** Built-in: MOVE_WINDOW
** Example: Move window2 to be anchored at the bottom right
** corner of window1.
*/
PROCEDURE Anchor_Bottom_Right2( Window2 VARCHAR2, Window1 VARCHAR2) IS
wn_id1 Window;
wn_id2 Window;
x NUMBER;
y NUMBER;
w NUMBER;
h NUMBER;
BEGIN
/*
** Find Window1 and get its (x,y) position, width, and
** height.
*/
wn_id1 := Find_Window(Window1);
x := Get_Window_Property(wn_id1,X_POS);
y := Get_Window_Property(wn_id1,Y_POS);
w := Get_Window_Property(wn_id1,WIDTH);
h := Get_Window_Property(wn_id1,HEIGHT);
/*
** Anchor Window2 at (x+w,y+h)
*/
wn_id2 := Find_Window(Window2);
Move_Window( wn_id2, x+w, y+h );
END;