OPEN WINDOW opens a window dialog with the font selector. The handle of the window will be returned if no error has arisen. In case of error the return value is 0.
Declaration: WORD fnts_open( FNT_DIALOG *fnt_dialog, WORD button_flags, WORD x, WORD y, LONG id, LONG pt, LONG ratio ); Call: whdl = fnts_open( fnt_dialog, 0x3f0f, -1, -1, id, pt, ratio ); Variable Argument Meaning Inputs: contrl[0] 182 fnts_open contrl[1] 9 Entries in intin contrl[3] 1 Entries in addrin intin[0] button_flags Flags for supported buttons intin[1] x x-coordinate of the window or -1 (centred) intin[2] y y-coordinate of the window or -1 (centred) intin[3/4] id Font ID intin[5/6] pt Height in 1/65536 point intin[7/8] ratio Width/height ratio in 1/65536 addrin[0] fnt_dialog Pointer to management structure Outputs: contrl[2] 1 Entries in intout contrl[4] 0 Entries in addrout intout[0] whdl Handle of the window or 0 (error) Description of <button_flags>: #define FNTS_SNAME 0x01 /* Select checkbox for names */ #define FNTS_SSTYLE 0x02 /* Select checkbox for style */ #define FNTS_SSIZE 0x04 /* Select checkbox for height */ #define FNTS_SRATIO 0x08 /* Select checkbox for width/height ratio */ #define FNTS_CHNAME 0x0100 /* Display checkbox for names */ #define FNTS_CHSTYLE 0x0200 /* Display checkbox for style */ #define FNTS_CHSIZE 0x0400 /* Display checkbox for height */ #define FNTS_CHRATIO 0x0800 /* Display checkbox for width/height ratio */ #define FNTS_RATIO 0x1000 /* Width/height ratio adjustable */ #define FNTS_BSET 0x2000 /* Button "Set" selectable */ #define FNTS_BMARK 0x4000 /* Button "Mark" selectable */