home *** CD-ROM | disk | FTP | other *** search
- Type EmbedForm From SampleMasterForm
- Type Label1 From Label
- Dim font1 As New Font
- End Type
- Type Image1 From Image
- Dim bitmap1 As New Bitmap
- End Type
- Dim Label2 As New Label
- Dim Label3 As New Label
- Dim Image2 As New Image
- Dim Image3 As New Image
- Dim FormFont As New Font
- Dim FormBitmap As New Bitmap
-
- ' METHODS for object: EmbedForm
- Sub ResetApplication_Click
- Controls.Refresh
- End Sub
-
- End Type
-
- Begin Code
- ' Reconstruction commands for object: EmbedForm
- '
- With EmbedForm
- .Caption := "Simple/Nested Embed Example"
- .ForeColor := 16711680
- .Font := EmbedForm.FormFont
- .Move(2925, 1980, 13005, 6825)
- .SampleDir := "C:\envelop\bootcamp\concepts\embed\"
- .SampleName := "embed"
- With .Label1
- .Caption := "This Label control has its own nested embedded Font. The other Labels on this Form share a simple embedded Font in the Form."
- .ForeColor := 0
- .Font := EmbedForm.Label1.font1
- .ZOrder := 1
- .Move(300, 300, 11700, 1050)
- With .font1
- .FaceName := "Times New Roman"
- .Size := 18.000000
- .Bold := True
- .Italic := False
- .Strikethru := False
- End With 'EmbedForm.Label1.font1
- End With 'EmbedForm.Label1
- With .Image1
- .Caption := "Image1"
- .ZOrder := 2
- .Move(300, 2100, 3900, 3750)
- .Picture := EmbedForm.Image1.bitmap1
- With .bitmap1
- .LoadType := "MemoryBased"
- .FileName := "embed.ero"
- .ResId := 0
- End With 'EmbedForm.Image1.bitmap1
- End With 'EmbedForm.Image1
- With .Label2
- .Caption := "This Image control below has its own nested embedded Bitmap."
- .ZOrder := 3
- .Move(300, 1500, 4200, 450)
- End With 'EmbedForm.Label2
- With .Label3
- .Caption := "The two Image controls shown below share a simple embedded Bitmap in the Form."
- .ForeColor := 255
- .ZOrder := 4
- .Move(4650, 1500, 6750, 450)
- End With 'EmbedForm.Label3
- With .Image2
- .Caption := "Image2"
- .ZOrder := 5
- .Move(4650, 2100, 3900, 3750)
- .Picture := EmbedForm.FormBitmap
- End With 'EmbedForm.Image2
- With .Image3
- .Caption := "Image3"
- .ZOrder := 6
- .Move(8700, 2100, 3900, 3750)
- .Picture := EmbedForm.FormBitmap
- End With 'EmbedForm.Image3
- With .FormFont
- .FaceName := "Courier"
- .Size := 9.000000
- .Bold := True
- .Italic := False
- .Strikethru := False
- End With 'EmbedForm.FormFont
- With .FormBitmap
- .LoadType := "MemoryBased"
- .FileName := "embed.ero"
- .ResId := 34172
- End With 'EmbedForm.FormBitmap
- With .helpfile
- .FileName := "C:\envelop\bootcamp\concepts\embed\embed.hlp"
- End With 'EmbedForm.helpfile
- End With 'EmbedForm
- End Code
-