S sid Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-28 #1 我在image上画线,响应鼠标移动事件,然后画点,但只能画出虚线,似乎onmousemove事件 反映不够移动快,请问有什么更好的方法?
A Another_eYes Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-28 #2 记录移动前和移动后的坐标, 然后用LineTo画线段, 不要只画点.
L linglingfa Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-29 #3 最好自己编个组件!你用“问题检索”搜寻TLine即可!
P pengyt Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-29 #4 leftpressed: boolean; xlast,ylast: integer; OnMouseDonw事件中 if button=mbleft then begin xlast:=x; ylast:=y; leftpressed:=true; end; OnMouseMove事件中 if leftpressed then begin moveto(xlast,ylast); lineto(x,y); xlast:=x; ylast:=y; end;
leftpressed: boolean; xlast,ylast: integer; OnMouseDonw事件中 if button=mbleft then begin xlast:=x; ylast:=y; leftpressed:=true; end; OnMouseMove事件中 if leftpressed then begin moveto(xlast,ylast); lineto(x,y); xlast:=x; ylast:=y; end;