dlg_set_size()

Sets the size of a dialog window.

If width and height are set to `0, 0`, the size is automatically determined.

Syntax

dlg_set_size(handle, width, height)

Parameters

Parameter Type Description
handle String The handle of the dialog.
width Number The width of the dialog in pixels.
height Number The height of the dialog in pixels.

Return Value

Examples

Set a dialog's size to 500×400 pixels

dlg_set_size("dialog_123", 500, 400);

Automatically determine the dialog's size

dlg_set_size("dialog_123", 0, 0);

See also

dlg_new
dlg_init
dlg_update
dlg_clear

dlg_show
dlg_abort

dlg_is_valid
dlg_keep_open
dlg_callback

dlg_modal
dlg_set_resizable
dlg_set_pos
dlg_set_size
dlg_set_btn
dlg_set_name
dlg_set_color