vb画坐标系,怎么让坐标系可以随着函数图像的大小自动调整?
2个回答
2016-07-21
展开全部
Private Sub Form_Load()
Form2.AutoRedraw = True
End Sub
Private Sub Form_Resize()
Form2.Cls
Form2.Scale (-20000, 20000)-(20000, -20000)
Form2.DrawWidth = 3
Form2.Line (-15000, 0)-(15000, 0), vbBlue
Form2.ForeColor = vbBlue
Form2.Print "x"
Form2.DrawWidth = 2
Form2.DrawWidth = 1.2
Form2.Line (0, -15000)-(0, 15000)
Form2.ForeColor = vbBlue
Form2.Print "y"
Form2.CurrentX = 0
Form2.CurrentY = 0
Form2.Print "0"
End Sub
Form2.AutoRedraw = True
End Sub
Private Sub Form_Resize()
Form2.Cls
Form2.Scale (-20000, 20000)-(20000, -20000)
Form2.DrawWidth = 3
Form2.Line (-15000, 0)-(15000, 0), vbBlue
Form2.ForeColor = vbBlue
Form2.Print "x"
Form2.DrawWidth = 2
Form2.DrawWidth = 1.2
Form2.Line (0, -15000)-(0, 15000)
Form2.ForeColor = vbBlue
Form2.Print "y"
Form2.CurrentX = 0
Form2.CurrentY = 0
Form2.Print "0"
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询