Declaration: WORD fnts_update( FNT_DIALOG *fnt_dialog, WORD button_flags, LONG id, LONG pt, LONG ratio ); Call: result = fnts_update( fnt_dialog, 0x3f0f, id, pt, ratio ); Variable Argument Meaning Inputs: contrl[0] 185 fnts_set contrl[1] 8 Entries in intin contrl[3] 1 Entries in addrin intin[0] 2 fnts_update intin[1] button_flags Flags for supported buttons intin[2/3] id Font ID intin[4/5] pt Height in 1/65536 point intin[6/7] 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] result
Description of <result>:
-1: | Function not present |
0: | Error (insufficient memory), the font selector must then be closed |
with fnts_close(). | |
1: | All OK |
Description of <button_flags>: #define FNTS_SNAME 0x01 /* Select checkbox for the names */ #define FNTS_SSTYLE 0x02 /* Select checkbox for the style */ #define FNTS_SSIZE 0x04 /* Select checkbox for the height */ #define FNTS_SRATIO 0x08 /* Select checkbox for the width/height ratio */ #define FNTS_CHNAME 0x0100 /* Display checkbox for the names */ #define FNTS_CHSTYLE 0x0200 /* Display checkbox for the style */ #define FNTS_CHSIZE 0x0400 /* Display checkbox for the height */ #define FNTS_CHRATIO 0x0800 /* Display checkbox for the width/height ratio */ #define FNTS_RATIO 0x1000 /* Width/height ratio adjustable */ #define FNTS_BSET 0x2000 /* Button "setting" selectable */ #define FNTS_BMARK 0x4000 /* Button "marking" selectable */
Note: This function was not present in older versions of WDIALOG. The binding ensures that in that case intout[0] returns -1.