f = createForm()
b = createButton(f)
b.Caption = 'Drag Me'
b.setPosition(10,10)
dragableButton = b
down = false
function ObjMouseDown(sender, button, x, y)
down = true
end
function ObjMouseMove(sender, x, y)
if down == true then
local x,y = getMousePos()
x,y = f.ScreenToClient(x,y)
dragableButton.Top = y
dragableButton.Left = x
end
end
function ObjMouseUp(sender, button, x, y)
down = false
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum