PSet是相对“画布”的坐标系统(scaleWidth,scaleHeight,scaleLeft,scaleTop)
同样是一句:
PSet (Form1.Width / 2, Form1.Height / 2)不变
当scaleWidth,scaleHeight,scaleLeft,scaleTop变动时
PSet (Form1.Width / 2, Form1.Height / 2)也会变
程序代码:
Private Sub Form_Activate()
Form1.DrawWidth = 5
Form1.ScaleWidth = Form1.Width
Form1.ScaleHeight = Form1.Height
Form1.PSet (Form1.Width / 2, Form1.Height / 2), vbRed
Form1.ScaleWidth = Form1.Width + 500
Form1.ScaleHeight = Form1.Height + 500
Form1.PSet (Form1.Width / 2, Form1.Height / 2), vbGreen
Form1.ScaleWidth = Form1.Width - 500
Form1.ScaleHeight = Form1.Height - 500
Form1.PSet (Form1.Width / 2, Form1.Height / 2), vbBlue
End Sub