home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD80447232000.psc / PSSC1 / frmOpenPicsForOpt2.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2000-07-13  |  14.3 KB  |  405 lines

  1. VERSION 5.00
  2. Begin VB.Form frmOpenPicsForOpt2 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "Open Pictures:"
  5.    ClientHeight    =   6825
  6.    ClientLeft      =   45
  7.    ClientTop       =   330
  8.    ClientWidth     =   7410
  9.    ControlBox      =   0   'False
  10.    ForeColor       =   &H00C0C0C0&
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   6825
  15.    ScaleWidth      =   7410
  16.    StartUpPosition =   2  'CenterScreen
  17.    Begin VB.CommandButton Command4 
  18.       Caption         =   "Reset Pics"
  19.       Height          =   375
  20.       Left            =   2400
  21.       TabIndex        =   27
  22.       Top             =   2760
  23.       Width           =   1095
  24.    End
  25.    Begin VB.CommandButton Command3 
  26.       Caption         =   "&OK"
  27.       Enabled         =   0   'False
  28.       Height          =   375
  29.       Left            =   3600
  30.       TabIndex        =   26
  31.       Top             =   2760
  32.       Width           =   1095
  33.    End
  34.    Begin VB.Frame Frame1 
  35.       Caption         =   "Preview:"
  36.       Height          =   2175
  37.       Left            =   4920
  38.       TabIndex        =   25
  39.       Top             =   360
  40.       Width           =   2295
  41.       Begin VB.Image Image1 
  42.          Height          =   1815
  43.          Left            =   120
  44.          Stretch         =   -1  'True
  45.          Top             =   240
  46.          Width           =   2055
  47.       End
  48.    End
  49.    Begin VB.TextBox Text10 
  50.       Height          =   285
  51.       Left            =   1800
  52.       Locked          =   -1  'True
  53.       TabIndex        =   16
  54.       Top             =   6480
  55.       Width           =   4335
  56.    End
  57.    Begin VB.TextBox Text9 
  58.       Height          =   285
  59.       Left            =   1800
  60.       Locked          =   -1  'True
  61.       TabIndex        =   15
  62.       Top             =   6120
  63.       Width           =   4335
  64.    End
  65.    Begin VB.TextBox Text8 
  66.       Height          =   285
  67.       Left            =   1800
  68.       Locked          =   -1  'True
  69.       TabIndex        =   14
  70.       Top             =   5760
  71.       Width           =   4335
  72.    End
  73.    Begin VB.TextBox Text7 
  74.       Height          =   285
  75.       Left            =   1800
  76.       Locked          =   -1  'True
  77.       TabIndex        =   13
  78.       Top             =   5400
  79.       Width           =   4335
  80.    End
  81.    Begin VB.TextBox Text6 
  82.       Height          =   285
  83.       Left            =   1800
  84.       Locked          =   -1  'True
  85.       TabIndex        =   12
  86.       Top             =   5040
  87.       Width           =   4335
  88.    End
  89.    Begin VB.TextBox Text5 
  90.       Height          =   285
  91.       Left            =   1800
  92.       Locked          =   -1  'True
  93.       TabIndex        =   11
  94.       Top             =   4680
  95.       Width           =   4335
  96.    End
  97.    Begin VB.TextBox Text4 
  98.       Height          =   285
  99.       Left            =   1800
  100.       Locked          =   -1  'True
  101.       TabIndex        =   10
  102.       Top             =   4320
  103.       Width           =   4335
  104.    End
  105.    Begin VB.TextBox Text3 
  106.       Height          =   285
  107.       Left            =   1800
  108.       Locked          =   -1  'True
  109.       TabIndex        =   9
  110.       Top             =   3960
  111.       Width           =   4335
  112.    End
  113.    Begin VB.TextBox Text2 
  114.       Height          =   285
  115.       Left            =   1800
  116.       Locked          =   -1  'True
  117.       TabIndex        =   8
  118.       Top             =   3600
  119.       Width           =   4335
  120.    End
  121.    Begin VB.TextBox Text1 
  122.       Height          =   285
  123.       Left            =   1800
  124.       Locked          =   -1  'True
  125.       TabIndex        =   6
  126.       Top             =   3240
  127.       Width           =   4335
  128.    End
  129.    Begin VB.CommandButton Command2 
  130.       Caption         =   "&Back"
  131.       Height          =   375
  132.       Left            =   2400
  133.       TabIndex        =   4
  134.       Top             =   2280
  135.       Width           =   2295
  136.    End
  137.    Begin VB.CommandButton Command1 
  138.       Caption         =   "Add Picture"
  139.       Height          =   375
  140.       Left            =   2400
  141.       TabIndex        =   3
  142.       Top             =   1920
  143.       Width           =   2295
  144.    End
  145.    Begin VB.FileListBox File1 
  146.       Height          =   1650
  147.       Left            =   2400
  148.       Pattern         =   "*.bmp*;*.gif*;*.jpg*;*.wmf*"
  149.       TabIndex        =   2
  150.       Top             =   120
  151.       Width           =   2295
  152.    End
  153.    Begin VB.DirListBox Dir1 
  154.       Height          =   2565
  155.       Left            =   120
  156.       TabIndex        =   1
  157.       Top             =   480
  158.       Width           =   2175
  159.    End
  160.    Begin VB.DriveListBox Drive1 
  161.       Height          =   315
  162.       Left            =   120
  163.       TabIndex        =   0
  164.       Top             =   120
  165.       Width           =   2175
  166.    End
  167.    Begin VB.Label Label12 
  168.       Caption         =   "Pic 10:"
  169.       Height          =   375
  170.       Left            =   1080
  171.       TabIndex        =   24
  172.       Top             =   6480
  173.       Width           =   495
  174.    End
  175.    Begin VB.Label Label11 
  176.       Caption         =   "Pic 9:"
  177.       Height          =   255
  178.       Left            =   1080
  179.       TabIndex        =   23
  180.       Top             =   6120
  181.       Width           =   495
  182.    End
  183.    Begin VB.Label Label10 
  184.       Caption         =   "Pic 8:"
  185.       Height          =   255
  186.       Left            =   1080
  187.       TabIndex        =   22
  188.       Top             =   5760
  189.       Width           =   495
  190.    End
  191.    Begin VB.Label Label9 
  192.       Caption         =   "Pic 7:"
  193.       Height          =   255
  194.       Left            =   1080
  195.       TabIndex        =   21
  196.       Top             =   5400
  197.       Width           =   495
  198.    End
  199.    Begin VB.Label Label8 
  200.       Caption         =   "Pic 6:"
  201.       Height          =   255
  202.       Left            =   1080
  203.       TabIndex        =   20
  204.       Top             =   5040
  205.       Width           =   615
  206.    End
  207.    Begin VB.Label Label7 
  208.       Caption         =   "Pic 5:"
  209.       Height          =   255
  210.       Left            =   1080
  211.       TabIndex        =   19
  212.       Top             =   4680
  213.       Width           =   495
  214.    End
  215.    Begin VB.Label Label6 
  216.       Caption         =   "Pic 4:"
  217.       Height          =   255
  218.       Left            =   1080
  219.       TabIndex        =   18
  220.       Top             =   4320
  221.       Width           =   495
  222.    End
  223.    Begin VB.Label Label5 
  224.       Caption         =   "Pic 3:"
  225.       Height          =   255
  226.       Left            =   1080
  227.       TabIndex        =   17
  228.       Top             =   3960
  229.       Width           =   615
  230.    End
  231.    Begin VB.Label Label4 
  232.       Caption         =   "Pic 2:"
  233.       Height          =   255
  234.       Left            =   1080
  235.       TabIndex        =   7
  236.       Top             =   3600
  237.       Width           =   735
  238.    End
  239.    Begin VB.Label Label3 
  240.       Caption         =   "Pic 1:"
  241.       Height          =   255
  242.       Left            =   1080
  243.       TabIndex        =   5
  244.       Top             =   3240
  245.       Width           =   495
  246.    End
  247. Attribute VB_Name = "frmOpenPicsForOpt2"
  248. Attribute VB_GlobalNameSpace = False
  249. Attribute VB_Creatable = False
  250. Attribute VB_PredeclaredId = True
  251. Attribute VB_Exposed = False
  252. Sub pause(interval)
  253. current = Timer
  254. Do While Timer - current < Val(interval)
  255. DoEvents
  256. End Sub
  257. Private Sub Command1_Click()
  258. On Error GoTo erhan
  259. Image1.Picture = LoadPicture(Dir1.Path + "\" + File1.FileName)
  260. If Me.Height = 4320 And Text1.Text <> "" Then Command3.Enabled = True
  261. If Me.Height = 4680 And Text2.Text <> "" Then Command3.Enabled = True
  262. If Me.Height = 5055 And Text3.Text <> "" Then Command3.Enabled = True
  263. If Me.Height = 5415 And Text4.Text <> "" Then Command3.Enabled = True
  264. If Me.Height = 5745 And Text5.Text <> "" Then Command3.Enabled = True
  265. If Me.Height = 6135 And Text6.Text <> "" Then Command3.Enabled = True
  266. If Me.Height = 6480 And Text7.Text <> "" Then Command3.Enabled = True
  267. If Me.Height = 6825 And Text8.Text <> "" Then Command3.Enabled = True
  268. If Me.Height = 7200 And Text9.Text <> "" Then Command3.Enabled = True
  269. If File1.FileName = "" Then MsgBox "Select a file, not just a directory or a drive!", vbExclamation + vbOKOnly, "Error:": Exit Sub
  270. If Me.Height = 4320 Then GoTo jtwo
  271. If Me.Height = 4680 Then GoTo jthree
  272. If Me.Height = 5055 Then GoTo jfour
  273. If Me.Height = 5415 Then GoTo jfive
  274. If Me.Height = 5745 Then GoTo jsix
  275. If Me.Height = 6135 Then GoTo jseven
  276. If Me.Height = 6480 Then GoTo jeight
  277. If Me.Height = 6825 Then GoTo jnine
  278. If Me.Height = 7200 Then GoTo jten
  279. jtwo:
  280. If Text1.Text = "" Then Text1.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  281. If Text2.Text = "" Then Text2.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  282. Exit Sub
  283. jthree:
  284. If Text1.Text = "" Then Text1.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  285. If Text2.Text = "" Then Text2.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  286. If Text3.Text = "" Then Text3.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  287. Exit Sub
  288. jfour:
  289. If Text1.Text = "" Then Text1.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  290. If Text2.Text = "" Then Text2.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  291. If Text3.Text = "" Then Text3.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  292. If Text4.Text = "" Then Text4.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  293. Exit Sub
  294. jfive:
  295. If Text1.Text = "" Then Text1.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  296. If Text2.Text = "" Then Text2.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  297. If Text3.Text = "" Then Text3.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  298. If Text4.Text = "" Then Text4.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  299. If Text5.Text = "" Then Text5.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  300. Exit Sub
  301. jsix:
  302. If Text1.Text = "" Then Text1.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  303. If Text2.Text = "" Then Text2.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  304. If Text3.Text = "" Then Text3.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  305. If Text4.Text = "" Then Text4.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  306. If Text5.Text = "" Then Text5.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  307. If Text6.Text = "" Then Text6.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  308. Exit Sub
  309. jseven:
  310. If Text1.Text = "" Then Text1.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  311. If Text2.Text = "" Then Text2.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  312. If Text3.Text = "" Then Text3.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  313. If Text4.Text = "" Then Text4.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  314. If Text5.Text = "" Then Text5.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  315. If Text6.Text = "" Then Text6.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  316. If Text7.Text = "" Then Text7.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  317. Exit Sub
  318. jeight:
  319. If Text1.Text = "" Then Text1.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  320. If Text2.Text = "" Then Text2.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  321. If Text3.Text = "" Then Text3.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  322. If Text4.Text = "" Then Text4.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  323. If Text5.Text = "" Then Text5.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  324. If Text6.Text = "" Then Text6.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  325. If Text7.Text = "" Then Text7.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  326. If Text8.Text = "" Then Text8.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  327. Exit Sub
  328. jnine:
  329. If Text1.Text = "" Then Text1.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  330. If Text2.Text = "" Then Text2.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  331. If Text3.Text = "" Then Text3.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  332. If Text4.Text = "" Then Text4.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  333. If Text5.Text = "" Then Text5.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  334. If Text6.Text = "" Then Text6.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  335. If Text7.Text = "" Then Text7.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  336. If Text8.Text = "" Then Text8.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  337. If Text9.Text = "" Then Text9.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  338. Exit Sub
  339. jten:
  340. If Text1.Text = "" Then Text1.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  341. If Text2.Text = "" Then Text2.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  342. If Text3.Text = "" Then Text3.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  343. If Text4.Text = "" Then Text4.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  344. If Text5.Text = "" Then Text5.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  345. If Text6.Text = "" Then Text6.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  346. If Text7.Text = "" Then Text7.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  347. If Text8.Text = "" Then Text8.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  348. If Text9.Text = "" Then Text9.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  349. If Text10.Text = "" Then Text10.Text = Dir1.Path + "\" + File1.FileName: Exit Sub
  350. Exit Sub
  351. erhan:
  352. MsgBox Err.Description, vbCritical + vbOKOnly, "Error:"
  353. MsgBox "If the picture you tried to load was directly in one of your drives, then please move that file to a FOLDER.  I'm sorry about this small problem!", vbExclamation + vbOKOnly, "Note:"
  354. Exit Sub
  355. End Sub
  356. Private Sub Command2_Click()
  357. frmHMHL.Show
  358. Unload Me
  359. Load Me
  360. End Sub
  361. Private Sub Command3_Click()
  362. ShowCursor (bShow = True)
  363. Me.Hide
  364. Load frmOpt2Final
  365. frmOpt2Final.Show
  366. End Sub
  367. Private Sub Command4_Click()
  368. Text1.Text = ""
  369. Text2.Text = ""
  370. Text3.Text = ""
  371. Text4.Text = ""
  372. Text5.Text = ""
  373. Text6.Text = ""
  374. Text7.Text = ""
  375. Text8.Text = ""
  376. Text9.Text = ""
  377. Text10.Text = ""
  378. End Sub
  379. Private Sub Dir1_Change()
  380. File1.Path = Dir1.Path
  381. End Sub
  382. Private Sub Drive1_Change()
  383. On Error GoTo erh
  384. Dir1.Path = Drive1.Drive
  385. GoTo done
  386. MsgBox Err.Description, vbCritical + vbOKOnly, "Error:"
  387. Exit Sub
  388. done:
  389. End Sub
  390. Private Sub File1_DblClick()
  391. Command1_Click
  392. End Sub
  393. Private Sub Form_Load()
  394. hm = frmHMHL.Combo1
  395. If hm = 2 Then Me.Height = 4320: Exit Sub
  396. If hm = 3 Then Me.Height = 4680: Exit Sub
  397. If hm = 4 Then Me.Height = 5055: Exit Sub
  398. If hm = 5 Then Me.Height = 5415: Exit Sub
  399. If hm = 6 Then Me.Height = 5745: Exit Sub
  400. If hm = 7 Then Me.Height = 6135: Exit Sub
  401. If hm = 8 Then Me.Height = 6480: Exit Sub
  402. If hm = 9 Then Me.Height = 6825: Exit Sub
  403. If hm = 10 Then Me.Height = 7200: Exit Sub
  404. End Sub
  405.