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

FIND_WINDOW Built-in

Description

Searches the list of windows and returns a window ID when it finds a valid window with the given name. You must define an appropriately typed variable to accept the return value. Define the variable with a type of Window.

Syntax

FUNCTION FIND_WINDOW
(window_name VARCHAR2);

Built-in Type unrestricted function

Returns Window

Enter Query Mode yes

Parameters

window_name 
 
Specifies the valid VARCHAR2 window name.

FIND_WINDOW Examples

/*

** Built-in: FIND_WINDOW
** Example: Anchor the upper left corner of window2 at the
** bottom right corner of window1.
*/
PROCEDURE Anchor_Bottom_Right( 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);
Set_Window_Property(wn_id2,X_POS, x+w );
Set_Window_Property(wn_id2,Y_POS, y+h );
END;


Referencing Oracle Forms objects by internal ID