A script-enabled browser is required for this page to function properly.

MOVE_WINDOW Built-in

Description

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.

Syntax

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

Parameters

window_id 
 
Specifies the unique ID that Oracle Forms assigns the window when created. Use the FIND_WINDOW Built-in to return the ID to an appropriately typed variable. The data type of the ID is Window.
 
window_name 
 
Specifies the name that you gave the window when creating it.
 
x 
 
Specifies the x coordinate on the screen where you want to place the upper left corner of a window.
 
y 
 
Specifies the y coordinate on the screen where you want to place the upper left corner of a window.

MOVE_WINDOW Examples

/*

** 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;