VB按下鼠标可画
由鼠标事在窗体上画图,按下鼠标可画图,双击可清除画图。补充完整dimpaintstartasbooleanprivatesubform_load()drawwidth=2...
由鼠标事在窗体上画图,按下鼠标可画图,双击可清除画图。
补充完整
dim paintstart as boolean
private sub form_load()
drawwidth=2
forecolor=vbgreen
end sub
private sb form_mousedown(button as integer,shift as integer,_x as single,
y as single)
()
end sub
private sub form_mousemove(button as integer,shift as integer,_x as single,
y as single)
if paintstart then
pset (x,y)
end if
end sub
private sub form_mouseup(button as integer,shift as integer,_x as single,
y as single)
()
end sub
private sub form_dblclick()
(cls)
end sub
最好解析一下 展开
补充完整
dim paintstart as boolean
private sub form_load()
drawwidth=2
forecolor=vbgreen
end sub
private sb form_mousedown(button as integer,shift as integer,_x as single,
y as single)
()
end sub
private sub form_mousemove(button as integer,shift as integer,_x as single,
y as single)
if paintstart then
pset (x,y)
end if
end sub
private sub form_mouseup(button as integer,shift as integer,_x as single,
y as single)
()
end sub
private sub form_dblclick()
(cls)
end sub
最好解析一下 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询