home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
- Begin VB.Form MainForm
- BackColor = &H00000000&
- Caption = "Picture Viewer 1.0"
- ClientHeight = 4845
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 10695
- Icon = "MainForm.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 4845
- ScaleWidth = 10695
- StartUpPosition = 3 'Windows Default
- Begin MSComDlg.CommonDialog CommonDialog1
- Left = 7800
- Top = 4320
- _ExtentX = 847
- _ExtentY = 847
- _Version = 393216
- DefaultExt = "*.bmp"
- DialogTitle = "Copy File:"
- End
- Begin VB.Timer Timer1
- Interval = 1
- Left = 8400
- Top = 4320
- End
- Begin VB.CommandButton Command4
- Caption = "Exit"
- Height = 375
- Left = 9240
- TabIndex = 12
- Top = 4320
- Width = 1335
- End
- Begin VB.Frame Frame3
- BackColor = &H00000000&
- Caption = " Test Picture: "
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 238
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 1455
- Left = 5280
- TabIndex = 9
- Top = 3240
- Width = 1935
- Begin VB.CommandButton Command3
- Caption = "Test Picture"
- Height = 735
- Left = 120
- Style = 1 'Graphical
- TabIndex = 10
- Top = 480
- Width = 1695
- End
- End
- Begin VB.Frame Frame2
- BackColor = &H00000000&
- Caption = " View Picture: "
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 238
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 3015
- Left = 5280
- TabIndex = 5
- Top = 120
- Width = 5295
- Begin VB.CommandButton Command2
- Caption = "Copy"
- Height = 375
- Left = 1560
- TabIndex = 8
- Top = 2520
- Width = 1335
- End
- Begin VB.CheckBox Check1
- BackColor = &H00000000&
- Caption = " Strech Picture "
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 238
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 255
- Left = 3120
- TabIndex = 7
- Top = 2520
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Caption = "View"
- Height = 375
- Left = 120
- TabIndex = 6
- Top = 2520
- Width = 1335
- End
- Begin VB.Image Image1
- Height = 2175
- Left = 120
- Top = 240
- Width = 5055
- End
- End
- Begin VB.Frame Frame1
- BackColor = &H00000000&
- Caption = " Chose File: "
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 238
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 4575
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 5055
- Begin VB.DriveListBox Drive2
- Height = 315
- Left = 120
- TabIndex = 4
- Top = 240
- Width = 2295
- End
- Begin VB.DirListBox Dir2
- Height = 3465
- Left = 120
- TabIndex = 3
- Top = 600
- Width = 2295
- End
- Begin VB.FileListBox File2
- Height = 4185
- Left = 2520
- Pattern = "*.bmp"
- TabIndex = 2
- Top = 240
- Width = 2415
- End
- Begin VB.ComboBox Combo2
- Height = 315
- ItemData = "MainForm.frx":030A
- Left = 120
- List = "MainForm.frx":031A
- Sorted = -1 'True
- TabIndex = 1
- Text = "*.bmp"
- Top = 4080
- Width = 2295
- End
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "This is program made by Armin Kalajdzija, if you have any questions about my program e-mail me: armin@logosoft.ba."
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 238
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 615
- Left = 7320
- TabIndex = 11
- Top = 3480
- Width = 3135
- End
- Attribute VB_Name = "MainForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Check1_Click()
- If Check1.Value = 1 Then
- Image1.Stretch = True
- End If
- If Check1.Value = 0 Then
- Image1.Stretch = False
- End If
- End Sub
- Private Sub Command1_Click()
- View.Show 1
- End Sub
- Private Sub Command2_Click()
- CommonDialog1.ShowSave
- FileCopy Dir2.Path + "\" + File2.FileName, CommonDialog1.FileName
- End Sub
- Private Sub Command4_Click()
- End Sub
- Private Sub Command5_Click()
- End Sub
- Private Sub Dir2_Change()
- File2.Path = Dir2.Path
- End Sub
- Private Sub Drive2_Change()
- Dir2.Path = Drive2.Drive
- End Sub
- Private Sub File2_Click()
- Image1.Picture = LoadPicture(Dir2.Path + "\" + File2.FileName)
- Command3.Picture = LoadPicture(Dir2.Path + "\" + File2.FileName)
- End Sub
- Private Sub Form_Load()
- Drive2.Drive = "c:"
- Dir2.Path = "c:\"
- File2.Path = "c:\"
- End Sub
- Private Sub Timer1_Timer()
- If Combo2.Text = "*.bmp" Then
- File2.Pattern = "*.bmp"
- End If
- If Combo2.Text = "*.jpg" Then
- File2.Pattern = "*.jpg"
- End If
- If Combo2.Text = "*.gif" Then
- File2.Pattern = "*.gif"
- End If
- If Combo2.Text = "*.ico" Then
- File2.Pattern = "*.ico"
- End If
- CommonDialog1.Filter = File2.Pattern
- CommonDialog1.FileName = File2.Pattern
- If Image1.Visible = False Then
- Command3.Enabled = False
- Command2.Enabled = False
- Command1.Enabled = False
- Check1.Enabled = False
- Command3.Enabled = True
- Command2.Enabled = True
- Command1.Enabled = True
- Check1.Enabled = True
- End If
- If Image1.Width <> 5055 Then
- Image1.Width = 5055
- End If
- If Image1.Height <> 2175 Then
- Image1.Height = 2175
- End If
- If File2.ListCount = 0 Then
- Image1.Picture = LoadPicture("")
- Command3.Picture = LoadPicture("")
- End If
- End Sub
-