dlg_comp_font()

Sets the font size and boldness of the last added component in a custom dialog.

Syntax

dlg_comp_font(handle, fontsize, bold)

Parameters

Parameter Type Description
handle String The dialog handle.
fontsize Number The size of the font in points. Optional (default: 15)
bold Number Whether the font is bold (1) or not (0). Optional (default: true)

Return Value

Examples

Set font size to 20 and enable bold

dlg_comp_font(hnd, 20, 1);

Set font size to 12 and disable bold

dlg_comp_font(hnd, 12, 0);

See also

dlg_add_image
dlg_add_label
dlg_add_checkbox
dlg_add_num_input
dlg_add_txt_input
dlg_add_button

dlg_comp_pos
dlg_comp_size
dlg_comp_color
dlg_comp_font
dlg_comp_name
dlg_comp_value
dlg_comp_callback