mainform.frm

来自「16 relay output channels and 16 isolated」· FRM 代码 · 共 966 行 · 第 1/3 页

FRM
966
字号
VERSION 5.00
Begin VB.Form frmMain 
   BackColor       =   &H8000000B&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Advantech Driver Demo: Digital Input with Interrupt Event ----( for VB 5.0 only! )"
   ClientHeight    =   5040
   ClientLeft      =   3840
   ClientTop       =   3555
   ClientWidth     =   8115
   FillStyle       =   0  'Solid
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5040
   ScaleWidth      =   8115
   StartUpPosition =   2  'CenterScreen
   Begin VB.Frame Frame1 
      Height          =   615
      Left            =   120
      TabIndex        =   25
      Top             =   0
      Width           =   7815
      Begin VB.ComboBox cmbChannel 
         Height          =   315
         Left            =   5520
         TabIndex        =   43
         Top             =   240
         Width           =   1455
      End
      Begin VB.TextBox CurrentDevice 
         BackColor       =   &H8000000F&
         BorderStyle     =   0  'None
         ForeColor       =   &H8000000D&
         Height          =   285
         Left            =   840
         Locked          =   -1  'True
         TabIndex        =   26
         Text            =   "Text1"
         Top             =   240
         Width           =   3495
      End
      Begin VB.Label Label12 
         Caption         =   "Channel :"
         Height          =   255
         Left            =   4560
         TabIndex        =   28
         Top             =   240
         Width           =   735
      End
      Begin VB.Label Label11 
         Caption         =   "Device :"
         Height          =   255
         Left            =   120
         TabIndex        =   27
         Top             =   240
         Width           =   615
      End
   End
   Begin VB.CommandButton SelectButton 
      Caption         =   "Select &Device..."
      Height          =   375
      Left            =   1365
      TabIndex        =   24
      Top             =   4335
      Width           =   1335
   End
   Begin VB.CommandButton AboutButton 
      Caption         =   "About..."
      Height          =   375
      Left            =   3315
      TabIndex        =   23
      Top             =   4335
      Width           =   1335
   End
   Begin VB.CommandButton CloseButton 
      Caption         =   "Close"
      Height          =   375
      Left            =   5550
      TabIndex        =   22
      Top             =   4335
      Width           =   1215
   End
   Begin VB.Frame Frame3 
      Caption         =   "Digital Input Scan"
      Height          =   3495
      Left            =   120
      TabIndex        =   0
      Top             =   720
      Width           =   3495
      Begin VB.Timer ScanTimer 
         Left            =   1560
         Top             =   2760
      End
      Begin VB.Frame Frame6 
         Height          =   1095
         Left            =   120
         TabIndex        =   15
         Top             =   240
         Width           =   3255
         Begin VB.TextBox txtChannelData 
            Alignment       =   1  'Right Justify
            BackColor       =   &H8000000F&
            ForeColor       =   &H80000002&
            Height          =   285
            Left            =   1320
            TabIndex        =   19
            Top             =   600
            Width           =   1215
         End
         Begin VB.TextBox txtInterval 
            Alignment       =   1  'Right Justify
            BackColor       =   &H00E0E0E0&
            Height          =   285
            Left            =   1320
            TabIndex        =   18
            Text            =   "1000"
            Top             =   240
            Width           =   1215
         End
         Begin VB.Label Label4 
            Caption         =   "Hex"
            Height          =   255
            Left            =   2640
            TabIndex        =   21
            Top             =   600
            Width           =   375
         End
         Begin VB.Label Label3 
            Caption         =   "mS"
            Height          =   255
            Left            =   2640
            TabIndex        =   20
            Top             =   240
            Width           =   495
         End
         Begin VB.Label Label2 
            Caption         =   "Channel Data:"
            Height          =   255
            Left            =   120
            TabIndex        =   17
            Top             =   600
            Width           =   1095
         End
         Begin VB.Label Label1 
            Caption         =   "Scan Interval :"
            Height          =   255
            Left            =   120
            TabIndex        =   16
            Top             =   240
            Width           =   1095
         End
      End
      Begin VB.CommandButton StopButton 
         Caption         =   "Stop"
         Enabled         =   0   'False
         Height          =   375
         Left            =   2040
         TabIndex        =   2
         Top             =   2760
         Width           =   1095
      End
      Begin VB.CommandButton StartButton 
         Caption         =   "Start"
         Height          =   375
         Left            =   360
         TabIndex        =   1
         Top             =   2760
         Width           =   1095
      End
      Begin VB.Frame Frame5 
         Caption         =   "Channel Status"
         Height          =   975
         Left            =   120
         TabIndex        =   4
         Top             =   1560
         Width           =   3255
         Begin VB.Image Gray_LED 
            Height          =   225
            Index           =   7
            Left            =   120
            Picture         =   "MainForm.frx":0000
            Top             =   360
            Width           =   225
         End
         Begin VB.Image Gray_LED 
            Height          =   225
            Index           =   6
            Left            =   480
            Picture         =   "MainForm.frx":0312
            Top             =   360
            Width           =   225
         End
         Begin VB.Image Gray_LED 
            Height          =   225
            Index           =   5
            Left            =   840
            Picture         =   "MainForm.frx":0624
            Top             =   360
            Width           =   225
         End
         Begin VB.Image Gray_LED 
            Height          =   225
            Index           =   4
            Left            =   1200
            Picture         =   "MainForm.frx":0936
            Top             =   360
            Width           =   225
         End
         Begin VB.Image Gray_LED 
            Height          =   225
            Index           =   3
            Left            =   1800
            Picture         =   "MainForm.frx":0C48
            Top             =   360
            Width           =   225
         End
         Begin VB.Image Gray_LED 
            Height          =   225
            Index           =   2
            Left            =   2160
            Picture         =   "MainForm.frx":0F5A
            Top             =   360
            Width           =   225
         End
         Begin VB.Image Gray_LED 
            Height          =   225
            Index           =   1
            Left            =   2520
            Picture         =   "MainForm.frx":126C
            Top             =   360
            Width           =   225
         End
         Begin VB.Image Gray_LED 
            Height          =   225
            Index           =   0
            Left            =   2880
            Picture         =   "MainForm.frx":157E
            Top             =   360
            Width           =   225
         End
         Begin VB.Image Red_LED 
            Height          =   225
            Index           =   7
            Left            =   120
            Picture         =   "MainForm.frx":1890
            Top             =   360
            Visible         =   0   'False
            Width           =   225
         End
         Begin VB.Image Red_LED 
            Height          =   225
            Index           =   6
            Left            =   480
            Picture         =   "MainForm.frx":1BA2
            Top             =   360
            Visible         =   0   'False
            Width           =   225
         End
         Begin VB.Image Red_LED 
            Height          =   225
            Index           =   5
            Left            =   840
            Picture         =   "MainForm.frx":1EB4
            Top             =   360
            Visible         =   0   'False
            Width           =   225
         End
         Begin VB.Image Red_LED 
            Height          =   225
            Index           =   4
            Left            =   1200
            Picture         =   "MainForm.frx":21C6
            Top             =   360
            Visible         =   0   'False
            Width           =   225
         End
         Begin VB.Image Red_LED 
            Height          =   225
            Index           =   3
            Left            =   1800
            Picture         =   "MainForm.frx":24D8
            Top             =   360
            Visible         =   0   'False
            Width           =   225
         End
         Begin VB.Image Red_LED 
            Height          =   225
            Index           =   2
            Left            =   2160
            Picture         =   "MainForm.frx":27EA
            Top             =   360
            Visible         =   0   'False
            Width           =   225
         End
         Begin VB.Image Red_LED 
            Height          =   225
            Index           =   1
            Left            =   2520
            Picture         =   "MainForm.frx":2AFC
            Top             =   360
            Visible         =   0   'False
            Width           =   225
         End
         Begin VB.Image Red_LED 
            Height          =   225
            Index           =   0
            Left            =   2880
            Picture         =   "MainForm.frx":2E0E
            Top             =   360
            Visible         =   0   'False
            Width           =   225
         End
         Begin VB.Label labBit 
            Alignment       =   2  'Center
            Caption         =   "7"
            Height          =   255
            Index           =   7
            Left            =   120
            TabIndex        =   12
            Top             =   600
            Width           =   255
         End

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?