home *** CD-ROM | disk | FTP | other *** search
- Type ResizeMasterForm From SampleMasterForm
- Dim Image1 As New Image
- Dim Image2 As New Image
- Dim Image3 As New Image
- Dim Image4 As New Image
- Dim Image5 As New Image
- Dim Image6 As New Image
- Dim Image7 As New Image
- Dim Image8 As New Image
- Dim Image9 As New Image
- Dim Image10 As New Image
- Dim Image11 As New Image
- Dim Image12 As New Image
-
- ' METHODS for object: ResizeMasterForm
- Sub btnClose_Click()
- Hide
- End Sub
-
- Sub ResizeDemoExit_Click()
- Hide
- End Sub
-
- Sub Resize()
- Dim control_width As Integer
- Dim control_height As Integer
-
- control_width = ResizeMasterForm.ScaleWidth / 4
- control_height = ResizeMasterForm.ScaleHeight / 3
-
- Image1.Move(0, 0, control_width, control_height)
- Image2.Move(control_width, 0, control_width, control_height)
- Image3.Move(control_width * 2, 0, control_width, control_height)
- Image4.Move(control_width * 3, 0, control_width, control_height)
- Image5.Move(0, control_height, control_width, control_height)
- Image6.Move(control_width, control_height, control_width, control_height)
- Image7.Move(control_width * 2, control_height, control_width, control_height)
- Image8.Move(control_width * 3, control_height, control_width, control_height)
- Image9.Move(0, control_height * 2, control_width, control_height)
- Image10.Move(control_width, control_height * 2, control_width, control_height)
- Image11.Move(control_width * 2, control_height * 2, control_width, control_height)
- Image12.Move(control_width * 3, control_height * 2, control_width, control_height)
- End Sub
-
- Sub ResetApplication_Click ()
-
- ' Initialize the Resize demonstration form
- ResizeMasterForm.Height = 4410
- ResizeMasterForm.Width = 5130
-
- End Sub
-
- End Type
-
- Begin Code
- ' Reconstruction commands for object: ResizeMasterForm
- '
- With ResizeMasterForm
- With .Image1
- .BackColor = 255
- .Move(0, 0, 1252, 1240)
- End With 'ResizeMasterForm.Image1
- With .Image2
- .BackColor = 65280
- .Move(1252, 0, 1252, 1240)
- End With 'ResizeMasterForm.Image2
- With .Image3
- .BackColor = 16711680
- .Move(2504, 0, 1252, 1240)
- End With 'ResizeMasterForm.Image3
- With .Image4
- .BackColor = 10609919
- .Move(3756, 0, 1252, 1240)
- End With 'ResizeMasterForm.Image4
- With .Image5
- .BackColor = 16776960
- .Move(0, 1240, 1252, 1240)
- End With 'ResizeMasterForm.Image5
- With .Image6
- .BackColor = 16711935
- .Move(1252, 1240, 1252, 1240)
- End With 'ResizeMasterForm.Image6
- With .Image7
- .BackColor = 65535
- .Move(2504, 1240, 1252, 1240)
- End With 'ResizeMasterForm.Image7
- With .Image8
- .BackColor = 7500449
- .Move(3756, 1240, 1252, 1240)
- End With 'ResizeMasterForm.Image8
- With .Image9
- .BackColor = 0
- .Move(0, 2480, 1252, 1240)
- End With 'ResizeMasterForm.Image9
- With .Image10
- .BackColor = 8421504
- .Move(1252, 2480, 1252, 1240)
- End With 'ResizeMasterForm.Image10
- With .Image11
- .Move(2504, 2480, 1252, 1240)
- End With 'ResizeMasterForm.Image11
- With .Image12
- .BackColor = 16777215
- .Move(3756, 2480, 1252, 1240)
- End With 'ResizeMasterForm.Image12
- With .helpfile
- .FileName = "W:\Examples\resize\resize.hlp"
- End With 'ResizeMasterForm.helpfile
- .Caption = "Resize Demonstration"
- .Move(6795, 1080, 5130, 4410)
- .SampleDir = "W:\Examples\resize\"
- .SampleName = "resize"
- End With 'ResizeMasterForm
- End Code
-