Window:startmoving() method


Initiate a drag and move operation on the Window.

Return value

This function returns no value.

Example

local ui = require "ui" local win = ui.Window("Window.startmoving() example", "raw", 320, 200) local label = ui.Label(win, "Click and drag to move the Window !") label.align = "all" label.textalign = "center" win.bgcolor = 0xfbd422 win:center() function label:onClick() win:startmoving() end ui.run(win):wait()