home *** CD-ROM | disk | FTP | other *** search
- Type ArrayFormMasterForm From SampleMasterForm
- Dim btnCreate As New Button
- Dim btnDelete As New Button
-
- ' METHODS for object: ArrayFormMasterForm
- Sub btnCreate_Click()
- Dim s As String
- Dim o As Object
- Dim m As ObjectModule
-
- ' Preserve the current open module; open my module so new form
- ' belongs to my module (allows module to unload easily).
- m = ModuleManager.CurrentModule
- ModuleManager.CurrentModule = ModuleManager.ModuleContaining(Me)
-
- Try
- s = UniqueObjectNameFromString("ArrayForm")
- o = CopyObject(ArrayFormMasterForm, s)
-
- o.Show
- o.Move Left + (Width / 10), Top + (Height / 10), Width, Height
- o.BackColor = RGB(rnd() * 256, rnd() * 256, rnd() * 256)
- Catch
- End Try
- ModuleManager.CurrentModule = m
- End Sub
-
- Sub btnDelete_Click()
- ' If the form is a copy of ArrayFormMasterForm, then destroy it.
- If Me <> ArrayFormMasterForm Then
- DestroyObject(Me)
- End If
- End Sub
-
- Sub ResetApplication_Click ()
- ' Set the default backcolor for the form
- ArrayFormMasterForm.BackColor = 0
- End Sub
-
- End Type
-
- Begin Code
- ' Reconstruction commands for object: ArrayFormMasterForm
- '
- With ArrayFormMasterForm
- .BackColor := 0
- .Move(7050, 6690, 3585, 4635)
- .SampleDir := "W:\bootcamp\basic\arrayfrm\"
- .SampleName := "arrayfrm"
- With .btnCreate
- .Caption := "Create"
- .ZOrder := 1
- .Move(300, 300, 1200, 450)
- End With 'ArrayFormMasterForm.btnCreate
- With .btnDelete
- .Caption := "Close"
- .ZOrder := 2
- .Move(1950, 3150, 1170, 465)
- End With 'ArrayFormMasterForm.btnDelete
- With .helpfile
- .FileName := "W:\bootcamp\basic\arrayfrm\arrayfrm.hlp"
- End With 'ArrayFormMasterForm.helpfile
- End With 'ArrayFormMasterForm
- End Code
-