home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form fMain
- Caption = "MicroHelp VBTools 5 - MhOddPic Example"
- ClientHeight = 3000
- ClientLeft = 3552
- ClientTop = 4212
- ClientWidth = 7488
- Height = 3468
- Left = 3492
- LinkTopic = "Form1"
- ScaleHeight = 3000
- ScaleWidth = 7488
- Top = 3804
- Width = 7608
- Begin VB.PictureBox picLander
- Appearance = 0 'Flat
- AutoSize = -1 'True
- BackColor = &H80000005&
- BorderStyle = 0 'None
- ForeColor = &H80000008&
- Height = 1080
- Index = 2
- Left = 3870
- Picture = "mhoddp_a.frx":0000
- ScaleHeight = 1080
- ScaleWidth = 1152
- TabIndex = 6
- Top = 135
- Width = 1152
- End
- Begin VB.CommandButton cmdAction
- Caption = "cmdAction(1)"
- Height = 465
- Index = 1
- Left = 5670
- TabIndex = 3
- Top = 2385
- Width = 1680
- End
- Begin VB.CommandButton cmdAction
- Caption = "cmdAction(0)"
- Height = 465
- Index = 0
- Left = 5670
- TabIndex = 2
- Top = 1845
- Width = 1680
- End
- Begin VB.PictureBox picLander
- Appearance = 0 'Flat
- AutoSize = -1 'True
- BackColor = &H80000005&
- BorderStyle = 0 'None
- ForeColor = &H80000008&
- Height = 1080
- Index = 1
- Left = 2025
- Picture = "mhoddp_a.frx":1162
- ScaleHeight = 1080
- ScaleWidth = 1152
- TabIndex = 1
- Top = 135
- Width = 1152
- End
- Begin VB.PictureBox picLander
- Appearance = 0 'Flat
- AutoSize = -1 'True
- BackColor = &H80000005&
- BorderStyle = 0 'None
- ForeColor = &H80000008&
- Height = 1080
- Index = 0
- Left = 180
- Picture = "mhoddp_a.frx":22C4
- ScaleHeight = 1080
- ScaleWidth = 1152
- TabIndex = 0
- Top = 135
- Width = 1152
- End
- Begin VB.Label lblDescription
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "lblDescription"
- Height = 1320
- Left = 5625
- TabIndex = 8
- Top = 135
- Width = 1680
- End
- Begin VB.Label lblLander
- BackStyle = 0 'Transparent
- Caption = "lblLander(2)"
- Height = 1275
- Index = 2
- Left = 3870
- TabIndex = 7
- Top = 1530
- Width = 1725
- End
- Begin VB.Label lblLander
- BackStyle = 0 'Transparent
- Caption = "lblLander(1)"
- Height = 1275
- Index = 1
- Left = 2025
- TabIndex = 5
- Top = 1530
- Width = 1725
- End
- Begin VB.Label lblLander
- BackStyle = 0 'Transparent
- Caption = "lblLander(0)"
- Height = 1275
- Index = 0
- Left = 180
- TabIndex = 4
- Top = 1530
- Width = 1725
- End
- Attribute VB_Name = "fMain"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Sub SetCaptions()
- Dim sCaption As String
- sCaption = "Follow these steps to create an irregularly "
- sCaption = sCaption & "shaped image to place on a background."
- lblDescription.Caption = sCaption
- ' Descriptions.
- sCaption = "Step 1 - Draw the irregularly shaped image that you "
- sCaption = sCaption & "want displayed over the background. Save "
- sCaption = sCaption & "this to a temporary file."
- lblLander(0).Caption = sCaption
- sCaption = "Step 2 - Make every color within the image black. The "
- sCaption = sCaption & "surrounding area should stay white. Save this "
- sCaption = sCaption & "as the .PictureMask."
- lblLander(1).Caption = sCaption
- sCaption = "Step 3 - Reopen the original image and change the white "
- sCaption = sCaption & "background to black. Save this as the .Picture."
- lblLander(2).Caption = sCaption
- ' Buttons.
- cmdAction(0).Caption = "&Show Background..."
- cmdAction(1).Caption = "E&xit"
- End Sub
- Private Sub cmdAction_Click(Index As Integer)
- Select Case Index
- ' Animate.
- Case 0
- fBackground.Show 1
- ' Exit.
- Case 1
- Unload Me
- End Select
- End Sub
- Private Sub Form_Load()
- SetCaptions
- ' center form to screen
- Move Abs(Screen.Width - Width) \ 2, Abs(Screen.Height - Height) \ 2
- End Sub
-