Set dialog position and size (:set_frame)
Declaration
dialog_obj = dialog_obj:set_frame(x, y, width, height)
Parameters
- x, y
Integer. Top-left position of the dialog - width, height
Integer. Dialog size. If not set elsewhere, defaults to full screen
Returns
- dialog_obj
Dialog. Returns the dialog itself
Description
Set the dialog's position and size, using square corners
Example
local dlg = dialog()
dlg:set_frame(0, 0, 600, 800)
dlg:show()