fnts_do() is the counterpart to fnts_open()/fnts_evnt()/fnts_close(). This function opens a modal dialog and only returns to the caller when one of the exit buttons ("Cancel", "OK", "Set", "Mark" or "Options") was activated.
Declaration:
WORD fnts_do( FNT_DIALOG *fnt_dialog, WORD button_flags,
LONG id_in, LONG pt_in, LONG ratio_in,
WORD *check_boxes, LONG *id, LONG *pt, LONG *ratio );
Call:
button = fnts_do( fnt_dialog, button_flags, id_in, pt_in, ratio_in,
&check_boxes, &id, &pt, &ratio );
Variable Argument Meaning
Inputs:
contrl[0] 187 fnts_do
contrl[1] 7 Entries in intin
contrl[3] 1 Entries in addrin
intin[0] button_flags
intin[1/2] id_in
intin[3/4] pt_in
intin[5/6] ratio_in
addrin[0] fnt_dialog Pointer to management structure
Outputs:
contrl[2] 8 Entries in intout
contrl[4] 0 Entries in addrout
intout[0] button Selected button (or 0)
intout[1] check_boxes Status of the checkboxes
intout[2/3] id ID of the selected font
intout[4/5] pt Height in 1/65536 point
intout[6/7] ratio Width/height ratio