This function returns the number of the current edit object. If the result is 0, then no edit object is active at the present time.
Declaration:
WORD wdlg_get_edit( DIALOG *dialog, WORD *cursor );
Call:
edit_obj = wdlg_get_edit( dialog, &cursor );
Variable Argument Meaning
Inputs:
contrl[0] 164 wdlg_get
contrl[1] 1 Entries in intin
contrl[3] 1 Entries in addrin
intin[0] 1 wdlg_get_edit
addrin[0] dialog Pointer to the dialog structure
Outputs:
contrl[2] 2 Entries in intout
contrl[4] 0 Entries in addrout
intout[0] edit_obj Number of the current edit object
(or 0, if none is active)
intout[1] cursor Index of the character
Note: With old WDIALOG versions <cursor> is not returned. The binding ensures that -1 is entered in this case.