home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Puzzle2
- Caption = "Load Bitmap"
- ClientHeight = 2535
- ClientLeft = 1275
- ClientTop = 2085
- ClientWidth = 8085
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2535
- ScaleWidth = 8085
- Begin VB.PictureBox picPreview
- Height = 2295
- Left = 5400
- ScaleHeight = 2265
- ScaleWidth = 2565
- TabIndex = 5
- Top = 120
- Width = 2595
- End
- Begin VB.CommandButton CmdCancel
- Caption = "Cancel"
- Height = 375
- Left = 4140
- TabIndex = 4
- Top = 2040
- Width = 1095
- End
- Begin VB.CommandButton CmdLoad
- Caption = "Load"
- Height = 375
- Left = 2880
- TabIndex = 3
- Top = 2040
- Width = 1095
- End
- Begin VB.DirListBox Dir1
- Height = 1815
- Left = 120
- TabIndex = 1
- Top = 600
- Width = 2535
- End
- Begin VB.FileListBox File1
- BackColor = &H00FFFFFF&
- Height = 1785
- Left = 2820
- Pattern = "*.bmp"
- TabIndex = 2
- Top = 120
- Width = 2415
- End
- Begin VB.DriveListBox Drive1
- Height = 315
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 2535
- End
- Attribute VB_Name = "Puzzle2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- ' Copyright
- 1997 by Desaware Inc. All Rights Reserved
- ' Hide the form and return control to the Puzzle form
- Private Sub CmdCancel_Click()
- Puzzle2.Hide
- End Sub
- ' Load the selected file
- Private Sub CmdLoad_Click()
- LoadBitmapFile
- End Sub
- Private Sub Dir1_Change()
- File1.Path = Dir1.Path
- End Sub
- Private Sub Drive1_Change()
- Dir1.Path = Drive1.Drive
- End Sub
- Private Sub File1_Click()
- Dim fname$
- Dim di&
- If File1.filename <> "" Then
- fname$ = File1.Path
- If fname$ <> "\" Then fname$ = fname$ + "\"
- fname$ = fname$ + File1.filename
- picPreview.Picture = LoadPicture(fname$)
- End If
- End Sub
- ' Load the selected file
- Private Sub File1_DblClick()
- LoadBitmapFile
- End Sub
- ' Loads the bitmap file specified in the file box
- ' into bitmap 2 and reinitializes.
- Private Sub LoadBitmapFile()
- Dim fname$
- If File1.filename <> "" Then
- fname$ = File1.Path
- If fname$ <> "\" Then fname$ = fname$ + "\"
- fname$ = fname$ + File1.filename
- Puzzle.Picture2.Picture = LoadPicture(fname$)
- DoTheUpdate% = -1
- End If
- Puzzle2.Hide ' And exit this form
- End Sub
-