如何让鼠标一移动到按钮上,按钮就移动别的地方?(10分)

L

lcl_003

Unregistered / Unconfirmed
GUEST, unregistred user!
如何让鼠标一移动到按钮上,按钮就移动别的地方?是在按钮的mouseup下写吗?
 
在MOUSEMOVE里写
 
哦,那写什么?button1.move?没有啊
 
onmouseover里写:
button1.top:=NEW_TOP;
button.left:=NEW_LEFT;

其中,NEW_TOP和NEW_LEFT是你希望鼠标出现的新位置
 
some other place , such as:
button1.left := button1.left + 100;
button1.top := button1.top + 100;
 
多人接受答案了。
 
顶部