OPEN opens a window with the title line <title> at the position <x>, <y>. Before wdlg_open() returns to the caller, the service routine <handle_exit> (see WINDOW DIALOG - CREATE (AES 160)) is called with the function number HNDL_OPEN: handle_exit(dialog, HNDL_OPEN, code, data );
Declaration:
WORD wdlg_open( DIALOG *dialog, BYTE *title, WORD kind, WORD x,
WORD y, WORD code, void *data );
Call:
handle = wdlg_open( dialog, title, NAME + CLOSER + MOVER, x, y,
code, data );
Variable Argument Meaning
Inputs:
contrl[0] 161 wdlg_open
contrl[1] 4 Entries in intin
contrl[3] 3 Entries in addrin
intin[0] kind Window components (NAME/MOVER/CLOSER)
intin[1] x x-coordinate of the dialog or -1 (centred)
intin[2] y y-coordinate of the dialog or -1 (centred)
intin[3] code Is passed to handle_exit() in <clicks>
addrin[0] dialog Pointer to the dialog structure
addrin[1] title Pointer to the window name or 0L
addrin[2] data Is passed to handle_exit() in <data>
Outputs:
contrl[2] 1 Entries in intout
contrl[4] 0 Entries in addrout
intout[0] handle Handle of the dialog window (0: Error)