home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / Image_File2120887172008.psc / ImageFilelist07-17-08 / Form1.frm < prev    next >
Text File  |  2008-07-15  |  6KB  |  208 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    AutoRedraw      =   -1  'True
  4.    Caption         =   "Form1"
  5.    ClientHeight    =   8055
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   10770
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   8055
  11.    ScaleWidth      =   10770
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin VB.CommandButton Command3 
  14.       Caption         =   "Command3"
  15.       Height          =   345
  16.       Left            =   9090
  17.       TabIndex        =   14
  18.       Top             =   1410
  19.       Width           =   1575
  20.    End
  21.    Begin VB.CheckBox Check1 
  22.       Caption         =   "Maintain Ratio"
  23.       Height          =   255
  24.       Left            =   6840
  25.       TabIndex        =   13
  26.       Top             =   1440
  27.       Width           =   1455
  28.    End
  29.    Begin VB.OptionButton Option1 
  30.       Caption         =   "Auto"
  31.       Height          =   255
  32.       Index           =   4
  33.       Left            =   9360
  34.       TabIndex        =   12
  35.       Top             =   1920
  36.       Width           =   945
  37.    End
  38.    Begin VB.TextBox Text1 
  39.       Height          =   285
  40.       Left            =   8340
  41.       TabIndex        =   11
  42.       Top             =   1920
  43.       Width           =   765
  44.    End
  45.    Begin VB.OptionButton Option1 
  46.       Caption         =   "Custom:"
  47.       Height          =   255
  48.       Index           =   3
  49.       Left            =   7350
  50.       TabIndex        =   10
  51.       Top             =   1950
  52.       Width           =   945
  53.    End
  54.    Begin VB.OptionButton Option1 
  55.       Caption         =   "Large"
  56.       Height          =   255
  57.       Index           =   2
  58.       Left            =   6450
  59.       TabIndex        =   9
  60.       Top             =   1950
  61.       Width           =   825
  62.    End
  63.    Begin VB.OptionButton Option1 
  64.       Caption         =   "Medium"
  65.       Height          =   255
  66.       Index           =   1
  67.       Left            =   5400
  68.       TabIndex        =   8
  69.       Top             =   1950
  70.       Width           =   975
  71.    End
  72.    Begin VB.OptionButton Option1 
  73.       Caption         =   "Small"
  74.       Height          =   255
  75.       Index           =   0
  76.       Left            =   4530
  77.       TabIndex        =   7
  78.       Top             =   1950
  79.       Width           =   795
  80.    End
  81.    Begin Thumbs.ucThumbs ctlThumbs 
  82.       Height          =   7965
  83.       Left            =   0
  84.       TabIndex        =   6
  85.       Top             =   0
  86.       Width           =   4380
  87.       _ExtentX        =   7726
  88.       _ExtentY        =   14049
  89.       MaintainRatio   =   -1  'True
  90.       AutoRedraw      =   -1  'True
  91.       Path            =   "C:\Documents and Settings\Mary\Desktop\Russell\ThumbNailViewer\Images"
  92.       BackColor       =   16711680
  93.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  94.          Name            =   "Arial"
  95.          Size            =   8.25
  96.          Charset         =   0
  97.          Weight          =   700
  98.          Underline       =   0   'False
  99.          Italic          =   0   'False
  100.          Strikethrough   =   0   'False
  101.       EndProperty
  102.       ListIndex       =   -1
  103.       BorderStyle     =   1
  104.       ForeColor       =   0
  105.       LastPath        =   "C:\Documents and Settings\Mary\Desktop\Russell\ThumbNailViewer"
  106.    End
  107.    Begin VB.PictureBox Picture1 
  108.       Height          =   5685
  109.       Left            =   4440
  110.       ScaleHeight     =   5625
  111.       ScaleWidth      =   6255
  112.       TabIndex        =   4
  113.       Top             =   2280
  114.       Width           =   6315
  115.    End
  116.    Begin VB.CommandButton Command1 
  117.       Caption         =   "List count"
  118.       Height          =   435
  119.       Index           =   2
  120.       Left            =   4410
  121.       TabIndex        =   3
  122.       Top             =   1380
  123.       Width           =   2205
  124.    End
  125.    Begin VB.CommandButton Command1 
  126.       Caption         =   "Get Selected"
  127.       Height          =   465
  128.       Index           =   1
  129.       Left            =   4410
  130.       TabIndex        =   2
  131.       Top             =   900
  132.       Width           =   2205
  133.    End
  134.    Begin VB.CommandButton Command1 
  135.       Caption         =   "Path"
  136.       Height          =   435
  137.       Index           =   0
  138.       Left            =   4410
  139.       TabIndex        =   1
  140.       Top             =   450
  141.       Width           =   2205
  142.    End
  143.    Begin VB.CommandButton Command2 
  144.       Caption         =   "Browse"
  145.       Height          =   435
  146.       Left            =   4410
  147.       TabIndex        =   0
  148.       Top             =   0
  149.       Width           =   2205
  150.    End
  151.    Begin VB.Label lbl 
  152.       Caption         =   $"Form1.frx":0000
  153.       Height          =   1125
  154.       Left            =   6750
  155.       TabIndex        =   5
  156.       Top             =   30
  157.       Width           =   3975
  158.    End
  159. End
  160. Attribute VB_Name = "Form1"
  161. Attribute VB_GlobalNameSpace = False
  162. Attribute VB_Creatable = False
  163. Attribute VB_PredeclaredId = True
  164. Attribute VB_Exposed = False
  165. Option Explicit
  166.  
  167. Private Sub Check1_Click()
  168.     ctlThumbs.MaintainRatio = (Check1.value = vbChecked)
  169. End Sub
  170.  
  171. Private Sub Command1_Click(Index As Integer)
  172. Dim Prompt As String
  173.         Select Case Index
  174.             Case 0: Prompt = ctlThumbs.path
  175.             Case 1: Prompt = IIf(ctlThumbs.ListIndex > -1, ctlThumbs.list(ctlThumbs.ListIndex), "Nothing Selected!")
  176.             Case 2: Prompt = ctlThumbs.ListCount
  177.         End Select
  178.     MsgBox Prompt
  179. End Sub
  180.  
  181. Private Sub Command2_Click()
  182.     ctlThumbs.BrowseFolder
  183. End Sub
  184.  
  185. Private Sub ctlThumbs_MouseDown(Button As Integer, Shift As Integer, x As Single, Y As Single, Index As Integer)
  186. On Error Resume Next 'index will return -1 if you click on a blank area
  187.     If Button = 1 And Index > -1 Then Picture1.Picture = LoadPicture(ctlThumbs.path & "\" & ctlThumbs.list(Index))
  188. End Sub
  189.  
  190. Private Sub ctlThumbs_SelChanged()
  191.     Debug.Print ctlThumbs.FileName
  192. End Sub
  193.  
  194. Private Sub Form_Load()
  195.     Option1(ctlThumbs.tmbSize).value = True
  196.     Check1.value = (ctlThumbs.MaintainRatio And vbChecked)
  197. End Sub
  198.  
  199. Private Sub Option1_Click(Index As Integer)
  200.     ctlThumbs.tmbSize = Index
  201.     Text1.Text = ctlThumbs.curDrawSize
  202. End Sub
  203.  
  204. Private Sub Text1_Change()
  205.     If Val(Text1.Text) > 0 And ctlThumbs.tmbSize = 3 Then ctlThumbs.curDrawSize = Val(Text1.Text)
  206. End Sub
  207.  
  208.