主题:  如何移动不规则窗口?

win_5d

职务:普通成员
等级:1
金币:0.0
发贴:49
注册:2002/3/19 10:34:53
#12002/3/25 18:57:12
我用蒙版实现了不规则的窗口,可是我不能移动它!一般的的规则窗口能够按住窗口上方的灰色区域进行拖动,可是不规则窗口将那部分透明化了,我怎么才能移动一个规则的窗口呢?是不是要取得对窗口的句柄,还是改变窗口的windowtype,谢谢!!!!



night_5d

职务:普通成员
等级:2
金币:1.0
发贴:275
注册:2000/12/15 21:24:38
#22002/3/26 17:38:18
property myDown
on beginsprite me
myDown=false
end
on mouseDown me
myDown=true
end
on mouseUp me
myDown=false
end
on exitframe me
if myDown then
moveH=the mouseh-sprite(me.spritenum).loch
moveV=the mousev-sprite(me.spritenum).locv
(the stage).rect=(the stage).rect+rect(moveH,moveV,moveH,moveV)
end if
end

将上面的行为付给你窗口中的一个组件。应该没问题的


[img]http://61.144.28.245/hjc/web/non-cgi//usravatars/paladin.gif[/img]
I thirst for freedom

win_5d

职务:普通成员
等级:1
金币:0.0
发贴:49
注册:2002/3/19 10:34:53
#32002/3/27 13:15:26
谢谢,我马上回去试试:)