我用VB在图像框里画了一条直线,怎么在直线上标上数据呢?相当于一条数轴!谢谢了
2个回答
展开全部
Private Sub Command1_Click()
Picture1.Scale (-10, -10)-(10, 10)
Picture1.Line (-10, 0)-(10, 0)
Picture1.Line (0, -10)-(0, 10)
For i = -10 To 10 Step 5
Picture1.CurrentX = i
Picture1.CurrentY = 0
Picture1.Print i
Picture1.CurrentX = 0
Picture1.CurrentY = i
Picture1.Print i
Next
End Sub
Picture1.Scale (-10, -10)-(10, 10)
Picture1.Line (-10, 0)-(10, 0)
Picture1.Line (0, -10)-(0, 10)
For i = -10 To 10 Step 5
Picture1.CurrentX = i
Picture1.CurrentY = 0
Picture1.Print i
Picture1.CurrentX = 0
Picture1.CurrentY = i
Picture1.Print i
Next
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询