home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 September (Special) / Chip-Special_2002-09_Digitalni-Video.bin / software / premiere / Cleaner / cleaner.exe / Main / COMTest.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2001-01-26  |  7.2 KB  |  252 lines

  1. VERSION 5.00
  2. Begin VB.Form COMTest 
  3.    Caption         =   "Cleaner 5 COM Test"
  4.    ClientHeight    =   5460
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   4950
  8.    LinkTopic       =   "COMTest"
  9.    ScaleHeight     =   5460
  10.    ScaleWidth      =   4950
  11.    StartUpPosition =   3  'Windows Default
  12.    Begin VB.CommandButton ExitButton 
  13.       Caption         =   "Exit"
  14.       Height          =   375
  15.       Left            =   120
  16.       TabIndex        =   22
  17.       Top             =   1680
  18.       Width           =   1095
  19.    End
  20.    Begin VB.CommandButton ItemDestination 
  21.       Caption         =   "Item Dest."
  22.       Height          =   375
  23.       Left            =   3720
  24.       TabIndex        =   21
  25.       Top             =   5040
  26.       Width           =   1095
  27.    End
  28.    Begin VB.TextBox ItemDestinationText 
  29.       Height          =   375
  30.       Left            =   120
  31.       TabIndex        =   20
  32.       Text            =   "Text1"
  33.       Top             =   5040
  34.       Width           =   3495
  35.    End
  36.    Begin VB.CommandButton LaunchRemote 
  37.       Caption         =   "Remote Computer"
  38.       Height          =   375
  39.       Left            =   3240
  40.       TabIndex        =   17
  41.       Top             =   480
  42.       Width           =   1455
  43.    End
  44.    Begin VB.TextBox LocationText 
  45.       Height          =   375
  46.       Left            =   240
  47.       TabIndex        =   16
  48.       Text            =   "Text1"
  49.       Top             =   480
  50.       Width           =   2895
  51.    End
  52.    Begin VB.TextBox ReadyText 
  53.       Height          =   375
  54.       Left            =   2520
  55.       TabIndex        =   15
  56.       Text            =   "Text1"
  57.       Top             =   2160
  58.       Width           =   1095
  59.    End
  60.    Begin VB.CommandButton Ready 
  61.       Caption         =   "Ready"
  62.       Height          =   375
  63.       Left            =   2520
  64.       TabIndex        =   14
  65.       Top             =   1680
  66.       Width           =   1095
  67.    End
  68.    Begin VB.CommandButton SettingAlts 
  69.       Caption         =   "SettingAlts"
  70.       Height          =   375
  71.       Left            =   3720
  72.       TabIndex        =   13
  73.       Top             =   4560
  74.       Width           =   1095
  75.    End
  76.    Begin VB.TextBox SettingAltsText 
  77.       Height          =   375
  78.       Left            =   120
  79.       TabIndex        =   12
  80.       Text            =   "Text1"
  81.       Top             =   4560
  82.       Width           =   3495
  83.    End
  84.    Begin VB.CommandButton Suspend 
  85.       Caption         =   "Suspend"
  86.       Height          =   375
  87.       Left            =   1320
  88.       TabIndex        =   11
  89.       Top             =   2160
  90.       Width           =   1095
  91.    End
  92.    Begin VB.CommandButton Start 
  93.       Caption         =   "Start"
  94.       Height          =   375
  95.       Left            =   1320
  96.       TabIndex        =   10
  97.       Top             =   1680
  98.       Width           =   1095
  99.    End
  100.    Begin VB.CommandButton SelectAll 
  101.       Caption         =   "Select All"
  102.       Height          =   375
  103.       Left            =   3720
  104.       TabIndex        =   9
  105.       Top             =   1680
  106.       Width           =   1095
  107.    End
  108.    Begin VB.CommandButton Clear 
  109.       Caption         =   "Clear"
  110.       Height          =   375
  111.       Left            =   3720
  112.       TabIndex        =   8
  113.       Top             =   2160
  114.       Width           =   1095
  115.    End
  116.    Begin VB.CommandButton Destination 
  117.       Caption         =   "Destination"
  118.       Height          =   375
  119.       Left            =   3720
  120.       TabIndex        =   7
  121.       Top             =   2640
  122.       Width           =   1095
  123.    End
  124.    Begin VB.TextBox DestinationText 
  125.       Height          =   405
  126.       Left            =   120
  127.       TabIndex        =   6
  128.       Text            =   "Text1"
  129.       Top             =   2640
  130.       Width           =   3495
  131.    End
  132.    Begin VB.CommandButton Add 
  133.       Caption         =   "Add"
  134.       Height          =   375
  135.       Left            =   3720
  136.       TabIndex        =   5
  137.       Top             =   3120
  138.       Width           =   1095
  139.    End
  140.    Begin VB.TextBox AddText 
  141.       Height          =   375
  142.       Left            =   120
  143.       TabIndex        =   4
  144.       Text            =   "Text1"
  145.       Top             =   3120
  146.       Width           =   3495
  147.    End
  148.    Begin VB.CommandButton XMLSetting 
  149.       Caption         =   "XMLSetting"
  150.       Height          =   375
  151.       Left            =   3720
  152.       TabIndex        =   3
  153.       Top             =   4080
  154.       Width           =   1095
  155.    End
  156.    Begin VB.TextBox XMLSettingText 
  157.       Height          =   375
  158.       Left            =   120
  159.       TabIndex        =   2
  160.       Text            =   "Text1"
  161.       Top             =   4080
  162.       Width           =   3495
  163.    End
  164.    Begin VB.TextBox SettingText 
  165.       Height          =   375
  166.       Left            =   120
  167.       TabIndex        =   1
  168.       Text            =   "Text1"
  169.       Top             =   3600
  170.       Width           =   3495
  171.    End
  172.    Begin VB.CommandButton Setting 
  173.       Caption         =   "Setting"
  174.       Height          =   375
  175.       Left            =   3720
  176.       TabIndex        =   0
  177.       Top             =   3600
  178.       Width           =   1095
  179.    End
  180.    Begin VB.Frame Frame1 
  181.       Caption         =   "Start Cleaner"
  182.       Height          =   1335
  183.       Left            =   120
  184.       TabIndex        =   18
  185.       Top             =   120
  186.       Width           =   4695
  187.       Begin VB.CommandButton StartLocal 
  188.          Caption         =   "This Computer"
  189.          Height          =   375
  190.          Left            =   3120
  191.          TabIndex        =   19
  192.          Top             =   840
  193.          Width           =   1455
  194.       End
  195.    End
  196. Attribute VB_Name = "COMTest"
  197. Attribute VB_GlobalNameSpace = False
  198. Attribute VB_Creatable = False
  199. Attribute VB_PredeclaredId = True
  200. Attribute VB_Exposed = False
  201. Dim myCleaner As ICleaner
  202. Private Sub Add_Click()
  203.     myCleaner.Add AddText.Text
  204. End Sub
  205. Private Sub Clear_Click()
  206.     myCleaner.Clear
  207. End Sub
  208. Private Sub Command1_Click()
  209. End Sub
  210. Private Sub Destination_Click()
  211.     myCleaner.SetDestination DestinationText.Text
  212. End Sub
  213. Private Sub ExitButton_Click()
  214.     myCleaner.Exit
  215. End Sub
  216. Private Sub ItemDestination_Click()
  217.     myCleaner.SetItemDestination ItemDestinationText.Text
  218. End Sub
  219. Private Sub LaunchRemote_Click()
  220.     Set myCleaner = CreateObject("CleanerLib.Cleaner", LocationText.Text)
  221. End Sub
  222. Private Sub Ready_Click()
  223.     If myCleaner.Ready Then
  224.         ReadyText.Text = "Ready"
  225.     Else
  226.         ReadyText.Text = "Busy"
  227.     End If
  228. End Sub
  229. Private Sub SelectAll_Click()
  230.     myCleaner.SelectAll
  231. End Sub
  232. Private Sub Setting_Click()
  233.     myCleaner.Setting SettingText.Text
  234. End Sub
  235. Private Sub SettingAlts_Click()
  236.     myCleaner.SettingAlts SettingAltsText.Text
  237. End Sub
  238. Private Sub Start_Click()
  239.     myCleaner.Start DestinationText.Text, 1
  240. End Sub
  241. Private Sub StartLocal_Click()
  242.     Set myCleaner = New Cleaner
  243. End Sub
  244. Private Sub Suspend_Click()
  245.     myCleaner.Suspend
  246. End Sub
  247. Private Sub Title_Click()
  248. End Sub
  249. Private Sub XMLSetting_Click()
  250.     myCleaner.XMLSetting XMLSettingText.Text
  251. End Sub
  252.