home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / olympus / ik32_15t / vb4.shr / Load.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-07-24  |  21.5 KB  |  664 lines

  1. VERSION 4.00
  2. Begin VB.Form Form1 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "Load"
  5.    ClientHeight    =   3615
  6.    ClientLeft      =   1125
  7.    ClientTop       =   4185
  8.    ClientWidth     =   8775
  9.    Height          =   4305
  10.    Left            =   1065
  11.    LinkTopic       =   "Form1"
  12.    LockControls    =   -1  'True
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   3615
  16.    ScaleWidth      =   8775
  17.    Top             =   3555
  18.    Width           =   8895
  19.    Begin VB.Frame frmCallbackOptions 
  20.       Caption         =   "Callback Options"
  21.       Height          =   1215
  22.       Left            =   6300
  23.       TabIndex        =   21
  24.       Top             =   120
  25.       Width           =   2355
  26.       Begin VB.CommandButton cmdCBInc 
  27.          Caption         =   "+"
  28.          Height          =   255
  29.          Left            =   1740
  30.          TabIndex        =   26
  31.          Top             =   300
  32.          Width           =   255
  33.       End
  34.       Begin VB.CommandButton cmdCBDec 
  35.          Caption         =   "-"
  36.          Height          =   255
  37.          Left            =   1980
  38.          TabIndex        =   25
  39.          Top             =   300
  40.          Width           =   255
  41.       End
  42.       Begin VB.TextBox txtCallback 
  43.          Height          =   285
  44.          Left            =   1200
  45.          TabIndex        =   24
  46.          Text            =   "txtCallback"
  47.          Top             =   300
  48.          Width           =   495
  49.       End
  50.       Begin VB.Label Label8 
  51.          Caption         =   "CallBackLines:"
  52.          Height          =   255
  53.          Left            =   120
  54.          TabIndex        =   27
  55.          Top             =   300
  56.          Width           =   1095
  57.       End
  58.       Begin VB.Label Label2 
  59.          Caption         =   "Number of Callbacks:"
  60.          Height          =   255
  61.          Left            =   120
  62.          TabIndex        =   23
  63.          Top             =   840
  64.          Width           =   1575
  65.       End
  66.       Begin VB.Label txtCallBackLines 
  67.          Caption         =   "0"
  68.          Height          =   255
  69.          Left            =   1740
  70.          TabIndex        =   22
  71.          Top             =   840
  72.          Width           =   555
  73.       End
  74.    End
  75.    Begin VB.Frame frmFIFOptions 
  76.       Caption         =   "FIF Options"
  77.       Height          =   2115
  78.       Left            =   3840
  79.       TabIndex        =   2
  80.       Top             =   1380
  81.       Width           =   4815
  82.       Begin VB.CommandButton cmdCHInc 
  83.          Caption         =   "+"
  84.          Height          =   255
  85.          Left            =   4200
  86.          TabIndex        =   44
  87.          Top             =   1380
  88.          Width           =   255
  89.       End
  90.       Begin VB.CommandButton cmdCHDec 
  91.          Caption         =   "-"
  92.          Height          =   255
  93.          Left            =   4440
  94.          TabIndex        =   43
  95.          Top             =   1380
  96.          Width           =   255
  97.       End
  98.       Begin VB.TextBox txtCropHeight 
  99.          Height          =   285
  100.          Left            =   3660
  101.          TabIndex        =   42
  102.          Text            =   "txtCropHeight"
  103.          Top             =   1380
  104.          Width           =   495
  105.       End
  106.       Begin VB.CommandButton cmdCWInc 
  107.          Caption         =   "+"
  108.          Height          =   255
  109.          Left            =   4200
  110.          TabIndex        =   40
  111.          Top             =   1020
  112.          Width           =   255
  113.       End
  114.       Begin VB.CommandButton cmdCWDec 
  115.          Caption         =   "-"
  116.          Height          =   255
  117.          Left            =   4440
  118.          TabIndex        =   39
  119.          Top             =   1020
  120.          Width           =   255
  121.       End
  122.       Begin VB.TextBox txtCropWidth 
  123.          Height          =   285
  124.          Left            =   3660
  125.          TabIndex        =   38
  126.          Text            =   "txtCropWidth"
  127.          Top             =   1020
  128.          Width           =   495
  129.       End
  130.       Begin VB.CommandButton cmdCTInc 
  131.          Caption         =   "+"
  132.          Height          =   255
  133.          Left            =   4200
  134.          TabIndex        =   36
  135.          Top             =   660
  136.          Width           =   255
  137.       End
  138.       Begin VB.CommandButton cmdCTDec 
  139.          Caption         =   "-"
  140.          Height          =   255
  141.          Left            =   4440
  142.          TabIndex        =   35
  143.          Top             =   660
  144.          Width           =   255
  145.       End
  146.       Begin VB.TextBox txtCropTop 
  147.          Height          =   285
  148.          Left            =   3660
  149.          TabIndex        =   34
  150.          Text            =   "txtCropTop"
  151.          Top             =   660
  152.          Width           =   495
  153.       End
  154.       Begin VB.CommandButton cmdCLInc 
  155.          Caption         =   "+"
  156.          Height          =   255
  157.          Left            =   4200
  158.          TabIndex        =   32
  159.          Top             =   300
  160.          Width           =   255
  161.       End
  162.       Begin VB.CommandButton cmdCLDec 
  163.          Caption         =   "-"
  164.          Height          =   255
  165.          Left            =   4440
  166.          TabIndex        =   31
  167.          Top             =   300
  168.          Width           =   255
  169.       End
  170.       Begin VB.TextBox txtCropLeft 
  171.          Height          =   285
  172.          Left            =   3660
  173.          TabIndex        =   30
  174.          Text            =   "txtCropLeft"
  175.          Top             =   300
  176.          Width           =   495
  177.       End
  178.       Begin VB.CheckBox chkLoadFastest 
  179.          Height          =   255
  180.          Left            =   3660
  181.          TabIndex        =   28
  182.          Top             =   1740
  183.          Width           =   435
  184.       End
  185.       Begin VB.CommandButton cmdLdHghtDec 
  186.          Caption         =   "-"
  187.          Height          =   255
  188.          Left            =   1980
  189.          TabIndex        =   18
  190.          Top             =   1560
  191.          Width           =   255
  192.       End
  193.       Begin VB.CommandButton cmdLdHghtInc 
  194.          Caption         =   "+"
  195.          Height          =   255
  196.          Left            =   1740
  197.          TabIndex        =   19
  198.          Top             =   1560
  199.          Width           =   255
  200.       End
  201.       Begin VB.TextBox txtLoadHeight 
  202.          Height          =   285
  203.          Left            =   1200
  204.          TabIndex        =   17
  205.          Text            =   "txtLoadHeight"
  206.          Top             =   1560
  207.          Width           =   495
  208.       End
  209.       Begin VB.TextBox TxtLoadWidth 
  210.          Height          =   285
  211.          Left            =   1200
  212.          TabIndex        =   15
  213.          Text            =   "txtLoadWidth"
  214.          Top             =   1200
  215.          Width           =   495
  216.       End
  217.       Begin VB.CommandButton CmdLdWdthDec 
  218.          Caption         =   "-"
  219.          Height          =   255
  220.          Left            =   1980
  221.          TabIndex        =   13
  222.          Top             =   1200
  223.          Width           =   255
  224.       End
  225.       Begin VB.CommandButton CmdLdWdthInc 
  226.          Caption         =   "+"
  227.          Height          =   255
  228.          Left            =   1740
  229.          TabIndex        =   12
  230.          Top             =   1200
  231.          Width           =   255
  232.       End
  233.       Begin VB.ComboBox CmbLoadScale 
  234.          Height          =   315
  235.          Left            =   1200
  236.          TabIndex        =   9
  237.          Text            =   "cmbLoadScale"
  238.          Top             =   720
  239.          Width           =   1275
  240.       End
  241.       Begin VB.ComboBox CmbLoadOptions 
  242.          Height          =   315
  243.          Left            =   1200
  244.          TabIndex        =   8
  245.          Text            =   "cmbLoadOptions"
  246.          Top             =   300
  247.          Width           =   1275
  248.       End
  249.       Begin VB.Label Label13 
  250.          Caption         =   "CropHeight:"
  251.          Height          =   255
  252.          Left            =   2580
  253.          TabIndex        =   45
  254.          Top             =   1380
  255.          Width           =   975
  256.       End
  257.       Begin VB.Label Label12 
  258.          Caption         =   "CropWidth:"
  259.          Height          =   255
  260.          Left            =   2580
  261.          TabIndex        =   41
  262.          Top             =   1020
  263.          Width           =   975
  264.       End
  265.       Begin VB.Label Label11 
  266.          Caption         =   "CropTop:"
  267.          Height          =   255
  268.          Left            =   2580
  269.          TabIndex        =   37
  270.          Top             =   660
  271.          Width           =   975
  272.       End
  273.       Begin VB.Label Label10 
  274.          Caption         =   "CropLeft:"
  275.          Height          =   255
  276.          Left            =   2580
  277.          TabIndex        =   33
  278.          Top             =   300
  279.          Width           =   975
  280.       End
  281.       Begin VB.Label Label9 
  282.          Caption         =   "LoadFastest:"
  283.          Height          =   255
  284.          Left            =   2580
  285.          TabIndex        =   29
  286.          Top             =   1740
  287.          Width           =   975
  288.       End
  289.       Begin VB.Label Label5 
  290.          Caption         =   "LoadHeight:"
  291.          Height          =   255
  292.          Left            =   120
  293.          TabIndex        =   20
  294.          Top             =   1560
  295.          Width           =   975
  296.       End
  297.       Begin VB.Label Label7 
  298.          Caption         =   "LoadWidth:"
  299.          Height          =   255
  300.          Left            =   120
  301.          TabIndex        =   7
  302.          Top             =   1200
  303.          Width           =   975
  304.       End
  305.       Begin VB.Label Label6 
  306.          Caption         =   "LoadScale:"
  307.          Height          =   255
  308.          Left            =   120
  309.          TabIndex        =   6
  310.          Top             =   720
  311.          Width           =   855
  312.       End
  313.       Begin VB.Label Label4 
  314.          Caption         =   "LoadOptions:"
  315.          Height          =   255
  316.          Left            =   120
  317.          TabIndex        =   5
  318.          Top             =   300
  319.          Width           =   1215
  320.       End
  321.    End
  322.    Begin VB.Frame frmTIFFOptions 
  323.       Caption         =   "TIFF Options"
  324.       Height          =   735
  325.       Left            =   3840
  326.       TabIndex        =   1
  327.       Top             =   600
  328.       Width           =   2355
  329.       Begin VB.CommandButton CmdImNumDec 
  330.          Caption         =   "-"
  331.          Height          =   255
  332.          Left            =   1980
  333.          TabIndex        =   11
  334.          Top             =   300
  335.          Width           =   255
  336.       End
  337.       Begin VB.CommandButton CmdImNumInc 
  338.          Caption         =   "+"
  339.          Height          =   255
  340.          Left            =   1740
  341.          TabIndex        =   10
  342.          Top             =   300
  343.          Width           =   255
  344.       End
  345.       Begin VB.TextBox TxtImageNumber 
  346.          Height          =   285
  347.          Left            =   1200
  348.          TabIndex        =   4
  349.          Text            =   "txtImageNumber"
  350.          Top             =   300
  351.          Width           =   495
  352.       End
  353.       Begin VB.Label Label1 
  354.          Caption         =   "ImageNumber:"
  355.          Height          =   255
  356.          Left            =   120
  357.          TabIndex        =   3
  358.          Top             =   300
  359.          Width           =   1095
  360.       End
  361.    End
  362.    Begin VB.ComboBox CmbImageType 
  363.       Height          =   315
  364.       Left            =   3840
  365.       TabIndex        =   0
  366.       Text            =   "cmbImageType"
  367.       Top             =   240
  368.       Width           =   2355
  369.    End
  370.    Begin ik32Lib.Picbuf Picbuf1 
  371.       Height          =   3495
  372.       Left            =   120
  373.       TabIndex        =   16
  374.       Top             =   0
  375.       Width           =   3615
  376.       _Version        =   65536
  377.       _ExtentX        =   6376
  378.       _ExtentY        =   6165
  379.       _StockProps     =   253
  380.    End
  381.    Begin MSComDlg.CommonDialog CommonDialog1 
  382.       Left            =   120
  383.       Top             =   0
  384.       _Version        =   65536
  385.       _ExtentX        =   847
  386.       _ExtentY        =   847
  387.       _StockProps     =   0
  388.    End
  389.    Begin VB.Label Label3 
  390.       Caption         =   "Load As:"
  391.       Height          =   255
  392.       Left            =   3840
  393.       TabIndex        =   14
  394.       Top             =   0
  395.       Width           =   855
  396.    End
  397.    Begin VB.Menu mnuFile 
  398.       Caption         =   "&File"
  399.       Begin VB.Menu mnuLoad 
  400.          Caption         =   "&Load Image..."
  401.       End
  402.       Begin VB.Menu mnuLoadWithCallbacks 
  403.          Caption         =   "Load Image With &Callbacks..."
  404.       End
  405.       Begin VB.Menu mnuSpacer 
  406.          Caption         =   "-"
  407.       End
  408.       Begin VB.Menu mnuExit 
  409.          Caption         =   "E&xit"
  410.          Shortcut        =   ^X
  411.       End
  412.    End
  413. Attribute VB_Name = "Form1"
  414. Attribute VB_Creatable = False
  415. Attribute VB_Exposed = False
  416. Option Explicit
  417. 'Description: This code resets all of the text
  418. 'boxes on the form to default values.
  419. Sub ResetTextBoxes()
  420.     TxtImageNumber.Text = "0"
  421.     TxtLoadWidth.Text = "0"
  422.     txtLoadHeight.Text = "0"
  423.     txtCallback.Text = "0"
  424.     txtCropLeft.Text = "0"
  425.     txtCropTop.Text = "0"
  426.     txtCropWidth.Text = "0"
  427.     txtCropHeight.Text = "0"
  428.     cmbLoadOptions.Text = cmbLoadOptions.List(0)
  429.     cmbLoadScale.Text = cmbLoadScale.List(0)
  430. End Sub
  431. 'Description: This sub sets the LoadFastest
  432. 'property according to what the value of the
  433. 'check box is.
  434. Private Sub chkLoadFastest_Click()
  435.     Picbuf1.LoadFastest = chkLoadFastest.Value
  436. End Sub
  437. 'Description: this checks to make sure that the
  438. 'correct file format is chosen for TIFF or FIF
  439. 'options.
  440. Private Sub CmbImageType_Click()
  441.     Select Case UCase(Mid(CmbImageType.Text, Len(CmbImageType.Text) - 2, 3))
  442.         Case "IFF"
  443.             frmTIFFOptions.Enabled = True
  444.             ResetTextBoxes
  445.             FrmFIFOptions.Enabled = False
  446.             frmCallbackOptions.Enabled = False
  447.         Case "FIF"
  448.             FrmFIFOptions.Enabled = True
  449.             frmCallbackOptions.Enabled = True
  450.             frmTIFFOptions.Enabled = False
  451.         Case "PEG", "PNG", "GIF"
  452.             frmCallbackOptions.Enabled = True
  453.             ResetTextBoxes
  454.             frmTIFFOptions.Enabled = False
  455.             FrmFIFOptions.Enabled = False
  456.         Case Else
  457.             ResetTextBoxes
  458.             frmTIFFOptions.Enabled = False
  459.             FrmFIFOptions.Enabled = False
  460.             frmCallbackOptions.Enabled = False
  461.     End Select
  462. End Sub
  463. 'Description: This procedure sets the LoadOptions
  464. 'value for FIF files.
  465. Private Sub cmbLoadOptions_Click()
  466.      Picbuf1.LoadOptions = Left(cmbLoadOptions.Text, 1)
  467. End Sub
  468. 'Description: This procedure sets the value of
  469. 'the LoadScale property for FIF files.
  470. Private Sub cmbLoadScale_Click()
  471.     Picbuf1.LoadScale = Left(cmbLoadScale, 1)
  472. End Sub
  473. 'Description: This code decreases the value of a
  474. 'text box
  475. Private Sub cmdCBDec_Click()
  476.     txtCallback.Text = Val(txtCallback.Text) - 1
  477.     If Val(txtCallback.Text) < 0 Then txtCallback.Text = 0
  478. End Sub
  479. 'Description: This code increases the value of a
  480. 'text box
  481. Private Sub cmdCBInc_Click()
  482.     txtCallback.Text = Val(txtCallback.Text) + 1
  483. End Sub
  484. 'Description: This code decreases the value of a
  485. 'text box
  486. Private Sub cmdCHDec_Click()
  487.     txtCropHeight.Text = Val(txtCropHeight.Text) - 1
  488.     If Val(txtCropHeight.Text) < 0 Then txtCropHeight.Text = 0
  489. End Sub
  490. 'Description: This code increases the value of a
  491. 'text box
  492. Private Sub cmdCHInc_Click()
  493.     txtCropHeight.Text = Val(txtCropHeight.Text) + 1
  494. End Sub
  495. 'Description: This code decreases the value of a
  496. 'text box
  497. Private Sub cmdCLDec_Click()
  498.     txtCropLeft.Text = Val(txtCropLeft.Text) - 1
  499.     If Val(txtCropLeft.Text) < 0 Then txtCropLeft.Text = 0
  500. End Sub
  501. 'Description: This code increases the value of a
  502. 'text box
  503. Private Sub cmdCLInc_Click()
  504.     txtCropLeft.Text = Val(txtCropLeft.Text) + 1
  505. End Sub
  506. 'Description: This code decreases the value of a
  507. 'text box
  508. Private Sub cmdCTDec_Click()
  509.     txtCropTop.Text = Val(txtCropTop.Text) - 1
  510.     If Val(txtCropTop.Text) < 0 Then txtCropTop.Text = 0
  511. End Sub
  512. 'Description: This code increases the value of a
  513. 'text box
  514. Private Sub cmdCTInc_Click()
  515.     txtCropTop.Text = Val(txtCropTop.Text) + 1
  516. End Sub
  517. 'Description: This code decreases the value of a
  518. 'text box
  519. Private Sub cmdCWDec_Click()
  520.     txtCropWidth.Text = Val(txtCropWidth.Text) - 1
  521.     If Val(txtCropWidth.Text) < 0 Then txtCropWidth.Text = 0
  522. End Sub
  523. 'Description: This code increases the value of a
  524. 'text box
  525. Private Sub cmdCWInc_Click()
  526.     txtCropWidth.Text = Val(txtCropWidth.Text) + 1
  527. End Sub
  528. 'Description: This code decreases the value of a
  529. 'text box when clicked
  530. Private Sub CmdImNumDec_Click()
  531.     TxtImageNumber.Text = Val(TxtImageNumber.Text) - 1
  532.     If Val(TxtImageNumber.Text) < 0 Then TxtImageNumber = 0
  533. End Sub
  534. 'Description: This code increases the value of a
  535. 'text box when clicked
  536. Private Sub CmdImNumInc_Click()
  537.     TxtImageNumber.Text = Val(TxtImageNumber.Text) + 1
  538. End Sub
  539. 'Description: This code decreases the value of a
  540. 'text box
  541. Private Sub cmdLdHghtDec_Click()
  542.     txtLoadHeight.Text = Val(txtLoadHeight.Text) - 1
  543.     If Val(txtLoadHeight.Text) < 0 Then txtLoadHeight.Text = 0
  544. End Sub
  545. 'Description: This code increases the value of a
  546. 'text box
  547. Private Sub cmdLdHghtInc_Click()
  548.     txtLoadHeight.Text = Val(txtLoadHeight.Text) + 1
  549. End Sub
  550. 'Description: This code decreases the value of a
  551. 'text box when clicked
  552. Private Sub CmdLdWdthDec_Click()
  553.     TxtLoadWidth.Text = Val(TxtLoadWidth.Text) - 1
  554.     If Val(TxtLoadWidth.Text) < 0 Then TxtLoadWidth.Text = 0
  555. End Sub
  556. 'Description: This code increases the value of a
  557. 'text box when clicked
  558. Private Sub CmdLdWdthInc_Click()
  559.     TxtLoadWidth.Text = Val(TxtLoadWidth.Text) + 1
  560. End Sub
  561. 'Description: This code calls a sub which ends the
  562. 'program
  563. Private Sub mnuExit_Click()
  564.     ExitProgram
  565. End Sub
  566. 'Note: Due to the nature of the LoadPalette property,
  567. 'it's use is not demonstrated in this project.
  568. Private Sub Form_Load()
  569.     'Add data to image type & load options combo boxes.
  570.     InitcmbLoadOptions cmbLoadOptions
  571.     InitcmbLoadScale cmbLoadScale
  572.     InitcmbImageFormat CmbImageType
  573.     'Set default values
  574.     ResetTextBoxes
  575.     frmTIFFOptions.Enabled = False
  576.     FrmFIFOptions.Enabled = False
  577.     frmCallbackOptions.Enabled = False
  578.     'Set PicBuf1 properties
  579.     InitPicbuf Picbuf1, True
  580. End Sub
  581. 'Description: This code loads an image, according
  582. 'to what is sent back from the common dialog control
  583. Private Sub mnuLoad_Click()
  584.     txtCallBackLines = 0
  585.     Picbuf1.ImageFormat = Val(Left(CmbImageType.Text, 1))
  586.     LoadImage Picbuf1, CommonDialog1
  587. End Sub
  588. 'Description: This procedure does the same thing as
  589. 'CmdLoad, except that it uses call backs.
  590. Private Sub mnuLoadWithCallbacks_Click()
  591.     Select Case UCase(Mid(CmbImageType.Text, Len(CmbImageType.Text) - 2, 3))
  592.         Case "GIF", "PNG", "PEG", "FIF"
  593.             Picbuf1.CallbackLines = 1
  594.             CommonDialog1.DialogTitle = "Load Image With Callbacks"
  595.             CommonDialog1.CancelError = True
  596.             CommonDialog1.Filter = "all files|*.*|picture files|*.fif;*.gif;*.jpg;*.png|JPEG|*.jpg|GIF|*.gif|PNG|*.png|*.fif|FIF"
  597.             CommonDialog1.FilterIndex = 2
  598.             CommonDialog1.Flags = cdlOFNHideReadOnly Or cdlOFNFileMustExist
  599.             CommonDialog1.CancelError = True
  600.             
  601.             On Error GoTo Cancel_Click
  602.             
  603.             CommonDialog1.ShowOpen
  604.             Picbuf1.Filename = CommonDialog1.Filename
  605.             Picbuf1.LoadCallback Form1
  606.             Exit Sub
  607.         Case Else
  608.             MsgBox "Loading with callbacks only works with certain file formats. Please select either JPEG, PNG, GIF, or FIF from the 'Load As' Combo box.", 48, "Warning"
  609.             Exit Sub
  610.     End Select
  611. Cancel_Click:
  612.     If Err.Number = 32755 Then
  613.         Exit Sub
  614.     Else
  615.         MsgBox Err.Description
  616.     End If
  617. End Sub
  618. 'Description: This procedure is used to demonstrate
  619. 'the Callback option for ImageKnife/OCX.
  620. Private Sub Picbuf1_Callback(Lines As Integer)
  621.     DoEvents
  622.     txtCallBackLines.Caption = Str(Lines)
  623. End Sub
  624. 'Description: This code sets the value of the
  625. 'picbuf property according to the value of the
  626. 'text box
  627. Private Sub txtCropHeight_Change()
  628.     Picbuf1.LoadCropHeight = Val(txtCropHeight.Text)
  629. End Sub
  630. 'Description: This code sets the value of the
  631. 'picbuf property according to the value of the
  632. 'text box
  633. Private Sub txtCropLeft_Change()
  634.     Picbuf1.LoadCropLeft = Val(txtCropLeft.Text)
  635. End Sub
  636. 'Description: This code sets the value of the
  637. 'picbuf property according to the value of the
  638. 'text box
  639. Private Sub txtCropTop_Change()
  640.     Picbuf1.LoadCropTop = Val(txtCropTop.Text)
  641. End Sub
  642. 'Description: This code sets the value of the
  643. 'picbuf property according to the value of the
  644. 'text box
  645. Private Sub txtCropWidth_Change()
  646.     Picbuf1.LoadCropWidth = Val(txtCropWidth.Text)
  647. End Sub
  648. 'Description: This sets the ImageNumber value for
  649. 'TIFF files.
  650. Private Sub TxtImageNumber_Change()
  651.     Picbuf1.ImageNumber = Val(TxtImageNumber.Text)
  652. End Sub
  653. 'Description: This code sets the value of the
  654. 'picbuf property according to the value of the
  655. 'text box
  656. Private Sub txtLoadHeight_Change()
  657.     Picbuf1.LoadHeight = Val(txtLoadHeight.Text)
  658. End Sub
  659. 'Description: This sub sets the value of LoadWidth
  660. 'for FIF files.
  661. Private Sub TxtLoadWidth_Change()
  662.     Picbuf1.LoadWidth = Val(TxtLoadWidth.Text)
  663. End Sub
  664.