Posted: Sat Jul 14, 2018 11:00 pm Post subject: How to drag a panel [help]
Hello,
so im want to make draggable panel, ican do it but no too perfect
i want more improve this
so can anyone help
my code was
Code:
panel = UDF1.CEPanel1
down = false
function CEPanel1MouseDown(sender, button, x, y)
down = true
end
function CEPanel1MouseMove(sender, x, y)
if down == true then
local x,y = getMousePos()
x,y = UDF1.ScreenToClient(x,y)
panel.Top = y
panel.Left = x
end
end
function CEPanel1MouseUp(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