HANDLE EVENT evaluates the passed EVNT structure and internally calls wdlg_evnt(). If one of the exit buttons ("Cancel", "OK", "Set", "Mark" or "Options") was activated the function returns 0 and the button that the user has selected is returned in button.
Declaration: WORD fnts_evnt( FNT_DIALOG *fnt_dialog, EVNT *events, WORD *button, WORD *check_boxes, LONG *id, LONG *pt, LONG *ratio ); Call: cont = fnts_evnt( fnt_dialog, &events, &button, &check_boxes, &id, &pt, &ratio ); Variable Argument Meaning Inputs: contrl[0] 186 fnts_evnt contrl[1] 0 Entries in intin contrl[3] 2 Entries in addrin addrin[0] fnt_dialog Pointer to management structure addrin[1] events Pointer to EVNT structure Outputs: contrl[2] 9 Entries in intout contrl[4] 0 Entries in addrout intout[0] cont 0: Exit button selected 1: Nothing happened intout[1] button Selected button (or 0) intout[2] check_boxes Status of the checkboxes intout[3/4] id ID of the selected font intout[5/6] pt Height in 1/65536 point intout[7/8] ratio Width/height ratio Description of <check_boxes>: #define FNTS_SNAME 0x01 /* Checkbox for the names selected */ #define FNTS_SSTYLE 0x02 /* Checkbox for the style selected */ #define FNTS_SSIZE 0x04 /* Checkbox for the height selected */ #define FNTS_SRATIO 0x08 /* Checkbox for the width/height ratio selected */