VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00FFFFFF&
   Caption         =   "Домик"
   ClientHeight    =   2496
   ClientLeft      =   48
   ClientTop       =   3300
   ClientWidth     =   4092
   LinkTopic       =   "Form1"
   ScaleHeight     =   2496
   ScaleWidth      =   4092
   Begin VB.CommandButton cmd3 
      Caption         =   "Показать третью форму"
      Height          =   492
      Left            =   360
      TabIndex        =   3
      Top             =   1680
      Width           =   2172
   End
   Begin VB.CommandButton cmd2 
      Caption         =   "Показать вторую форму"
      Height          =   492
      Left            =   360
      TabIndex        =   2
      Top             =   1080
      Width           =   2172
   End
   Begin VB.CommandButton cmdКрыша 
      Caption         =   "Крыша"
      Height          =   492
      Left            =   2880
      TabIndex        =   1
      Top             =   840
      Width           =   1092
   End
   Begin VB.CommandButton cmdСтена 
      Caption         =   "Стена"
      Height          =   492
      Left            =   2880
      TabIndex        =   0
      Top             =   120
      Width           =   1092
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Sub Домик2(X1, X2, Y1, Y2 As Single)
frm2.Line (X1, Y1)-(X2, Y2), , B
frm2.Line (X1, Y1)-(X2, Y1)
frm2.Line (X1, Y1)-((X1 + X2) / 2, Y1 + Y1 / 2)
frm2.Line ((X1 + X2) / 2, Y1 + Y1 / 2)-(X2, Y1)
End Sub
Private Sub cmdСтена_Click()
Scale (0, 170)-(350, 0)
frm1.Line (20, 100)-(220, 20), , B
End Sub
Private Sub cmdКрыша_Click()
Scale (0, 170)-(350, 0)
frm1.Line (20, 100)-(220, 100)
frm1.Line (20, 100)-(120, 150)
frm1.Line (120, 150)-(220, 100)
End Sub
Private Sub cmd2_Click()
frm2.Show
End Sub
Private Sub cmd3_Click()
frm3.Show
End Sub
