Hello everyone!
How can I drag the dialog, I mean click down left button on the title bar then move mouse to change the position of the dialog, via moving the mouse within the dialog client window?
This is my Script but that doesn't work.
rollout posChangeTest "Pos Change"
(
button bt1 "Button1"
button bt2 "Button2"
local mouseDown
fn moveRollout =
(
SetDialogPos posChangeTest ((mouse.screenpos) - pos)
)
on posChangeTest lbuttondown pos do
mouseDown = true
on posChangeTest lbuttonup pos do
mouseDown = false
on posChangeTest mousemove pos do
if mouseDown = true do
moveRollout()
)
createDialog posChangeTest style:#()
By ausn · 2009-05-19