home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code2 / scg_demo / main.frm < prev    next >
Text File  |  1993-10-04  |  3KB  |  118 lines

  1. VERSION 2.00
  2. Begin Form frmMain 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Main"
  5.    ClientHeight    =   5790
  6.    ClientLeft      =   105
  7.    ClientTop       =   1485
  8.    ClientWidth     =   2160
  9.    Height          =   6195
  10.    Icon            =   0
  11.    Left            =   45
  12.    LinkTopic       =   "Form2"
  13.    ScaleHeight     =   5790
  14.    ScaleWidth      =   2160
  15.    Top             =   1140
  16.    Width           =   2280
  17.    Begin CommandButton Resize 
  18.       Caption         =   "Resize"
  19.       Height          =   375
  20.       Left            =   120
  21.       TabIndex        =   6
  22.       Top             =   1200
  23.       Width           =   1935
  24.    End
  25.    Begin CommandButton Print 
  26.       Caption         =   "Print Current Form"
  27.       Height          =   375
  28.       Left            =   120
  29.       TabIndex        =   5
  30.       Top             =   4560
  31.       Width           =   1935
  32.    End
  33.    Begin CommandButton Composite 
  34.       Caption         =   "Composite Shapes"
  35.       Height          =   375
  36.       Left            =   120
  37.       TabIndex        =   4
  38.       Top             =   480
  39.       Width           =   1935
  40.    End
  41.    Begin CommandButton Exit 
  42.       Caption         =   "Exit"
  43.       Height          =   375
  44.       Left            =   120
  45.       TabIndex        =   3
  46.       Top             =   5280
  47.       Width           =   1935
  48.    End
  49.    Begin CommandButton SimpMove 
  50.       Caption         =   "Simple Move"
  51.       Height          =   375
  52.       Left            =   120
  53.       TabIndex        =   2
  54.       Top             =   1560
  55.       Width           =   1935
  56.    End
  57.    Begin CommandButton AccMove 
  58.       Caption         =   "Accurate Move"
  59.       Height          =   375
  60.       Left            =   120
  61.       TabIndex        =   1
  62.       Top             =   840
  63.       Width           =   1935
  64.    End
  65.    Begin CommandButton Samples 
  66.       Caption         =   "Sample Shapes"
  67.       Height          =   375
  68.       Left            =   120
  69.       TabIndex        =   0
  70.       Top             =   120
  71.       Width           =   1935
  72.    End
  73. End
  74. Option Explicit
  75. Dim frmCurrent As Form
  76.  
  77. Sub AccMove_Click ()
  78.     frmAccMove.Show
  79.     Set frmCurrent = frmAccMove
  80. End Sub
  81.  
  82. Sub Composite_Click ()
  83.     frmComp.Show
  84.     Set frmCurrent = frmComp
  85. End Sub
  86.  
  87. Sub Exit_Click ()
  88.     End
  89. End Sub
  90.  
  91. Sub Form_Unload (Cancel As Integer)
  92.     End
  93. End Sub
  94.  
  95. Sub Print_Click ()
  96.     If Not (frmCurrent Is Nothing) Then
  97.         Screen.MousePointer = 11  ' hourglass
  98.         PrintFrm frmCurrent
  99.         Screen.MousePointer = 0   ' default
  100.     End If
  101. End Sub
  102.  
  103. Sub Resize_Click ()
  104.     frmResize.Show
  105.     Set frmCurrent = frmResize
  106. End Sub
  107.  
  108. Sub Samples_Click ()
  109.     frmSamples.Show
  110.     Set frmCurrent = frmSamples
  111. End Sub
  112.  
  113. Sub SimpMove_Click ()
  114.     frmSimpMove.Show
  115.     Set frmCurrent = frmSimpMove
  116. End Sub
  117.  
  118.