| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 675 人关注过本帖
标题:帮我修改一下画直线的代码,多谢
取消只看楼主 加入收藏
雪雪2
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-4-19
收藏
 问题点数:0 回复次数:0 
帮我修改一下画直线的代码,多谢
帮我修改一下画直线的代码,多谢

Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
xx = X
yy = Y
End If
End Sub

Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
Picture1.Line (xx, yy)-(X, Y)
End If
End Sub

Private Sub Picture1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
Picture1.Line (xx, yy)-(X, Y)
End If
End Sub

画的直线起点总是在picture的左上角,不知为什么?
搜索更多相关主题的帖子: 直线 代码 
2006-04-20 17:46
快速回复:帮我修改一下画直线的代码,多谢
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011136 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved