VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00C00000&
   Caption         =   "Управление c обрат. связью"
   ClientHeight    =   3090
   ClientLeft      =   4140
   ClientTop       =   3300
   ClientWidth     =   3885
   DrawWidth       =   3
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   3885
   Begin VB.TextBox txtY 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   1320
      TabIndex        =   8
      Top             =   2400
      Width           =   612
   End
   Begin VB.TextBox txtX 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   360
      TabIndex        =   7
      Top             =   2400
      Width           =   612
   End
   Begin VB.CommandButton cmd2 
      Caption         =   "Результат"
      Height          =   372
      Left            =   2400
      TabIndex        =   6
      Top             =   2520
      Width           =   1092
   End
   Begin VB.PictureBox pic1 
      BackColor       =   &H00FFFFFF&
      DrawWidth       =   3
      Height          =   1812
      Left            =   240
      ScaleHeight     =   1755
      ScaleWidth      =   1755
      TabIndex        =   5
      Top             =   360
      Width           =   1812
   End
   Begin VB.CommandButton cmdP 
      Caption         =   "Упр. объект"
      Height          =   372
      Left            =   2400
      TabIndex        =   4
      Top             =   240
      Width           =   1092
   End
   Begin VB.CommandButton cmdD 
      Caption         =   "v"
      Height          =   492
      Left            =   2760
      TabIndex        =   3
      Top             =   1920
      Width           =   372
   End
   Begin VB.CommandButton cmdUp 
      Caption         =   "^"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   2760
      TabIndex        =   2
      Top             =   840
      Width           =   372
   End
   Begin VB.CommandButton cmdL 
      Caption         =   "<"
      Height          =   372
      Left            =   2160
      TabIndex        =   1
      Top             =   1440
      Width           =   612
   End
   Begin VB.CommandButton cmdR 
      Caption         =   ">"
      Height          =   372
      Left            =   3120
      TabIndex        =   0
      Top             =   1440
      Width           =   612
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim bytX1, bytY1, bytX2, bytY2 As Byte
Private Sub cmdP_Click()
pic1.Scale (0, 20)-(20, 0)
bytX1 = Int(Rnd * 20)
bytY1 = Int(Rnd * 20)
pic1.PSet (bytX1, bytY1), vbRed
End Sub
Private Sub cmdL_Click()
pic1.Scale (0, 20)-(20, 0)
bytX1 = bytX1 - 1
pic1.PSet (bytX1, bytY1), vbRed
txtX.Text = bytX1
txtY.Text = bytY1
End Sub
Private Sub cmdR_Click()
pic1.Scale (0, 20)-(20, 0)
bytX1 = bytX1 + 1
pic1.PSet (bytX1, bytY1), vbRed
txtX.Text = bytX1
txtY.Text = bytY1
End Sub
Private Sub cmdUp_Click()
pic1.Scale (0, 20)-(20, 0)
bytY1 = bytY1 + 1
pic1.PSet (bytX1, bytY1), vbRed
txtX.Text = bytX1
txtY.Text = bytY1
End Sub
Private Sub cmdD_Click()
pic1.Scale (0, 20)-(20, 0)
bytY1 = bytY1 - 1
pic1.PSet (bytX1, bytY1), vbRed
txtX.Text = bytX1
txtY.Text = bytY1
End Sub
Private Sub cmd2_Click()
pic1.Scale (0, 20)-(20, 0)
pic1.Circle (10, 10), 5
pic1.PSet (bytX1, bytY1), vbBlack
End Sub
