Article ID: 129893
Article Last Modified on 1/8/2003
Sub Form_Click ()
Dim X As Integer, Y As Integer, N As Integer
N = 5
X = 0
Y = 0
yscale = Form1.ScaleWidth / Form1.ScaleHeight 'added:
Form1.ScaleMode = 0
Form1.ScaleHeight = -3
Form1.ScaleWidth = 3
Form1.ScaleLeft = -1.5
Form1.ScaleTop = 1.5
Circle (x, y), 1, QBColor(n)
Line (x, y)-(1, 0), QBColor(n)
Line (x, y)-(0, 1 * yscale), QBColor(n) 'modified: added * yscale
Line (x, y)-(-1, 0), QBColor(n)
Line (x, y)-(0, -1 * yscale), QBColor(n) 'modified: added * yscale
End Sub
Sub Command1_Click ()
Form1.ScaleMode = 5 'Inches
Form1.ScaleLeft = 0
Form1.ScaleTop = 0
Dim N As Integer, X As Integer, Y As Integer
N = 5
X = 1
Y = 1
Circle (x, y), 1, QBColor(n)
Line (x, y)-(2, 1), QBColor(n)
Line (x, y)-(1, 2), QBColor(n)
Line (x, y)-(-2, 1), QBColor(n)
Line (x, y)-(1, -2), QBColor(n)
End Sub
Sub Command2_Click()
'** Note: depending on what screen resolution you are running
'the aspect ratio difference may differ. At 1024x768 resolution,
'the 2nd and 4th Line statement generate lines which go outside
'of the circle).
Dim N As Integer, X As Integer, Y As Integer
N = 5
X = 0
Y = 0
Form1.ScaleMode = 0 'User
Form1.ScaleHeight = -3
Form1.ScaleWidth = 3
Form1.ScaleLeft = -1.5
Form1.ScaleTop = 1.5
Circle (x, y), 1, QBColor(n)
Line (x, y)-(1, 0), QBColor(n)
Line (x, y)-(0, 1), QBColor(n) '** line 2
Line (x, y)-(-1, 0), QBColor(n)
Line (x, y)-(0, -1), QBColor(n) '** line 4
End Sub
Additional query words: 4.00 vb4win vb4all
Keywords: kbprb KB129893