dlg_comp_pos()

Sets the position of the last added component in a custom dialog.

If `y` is `-1`, the component is placed at the same position as the last one. If no position is specified, components are placed below the last one.

Syntax

dlg_comp_pos(handle, x, y)

Parameters

Parameter Type Description
handle String The dialog handle.
x Number The x-coordinate of the component. Optional
y Number The y-coordinate of the component (-1 to keep last position). Optional

Return Value

Examples

Set the position of the last added component to (50, 100)

dlg_comp_pos(hnd, 50, 100);

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