⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 conds.frm

📁 16 relay output channels and 16 isolated digital input channels LED indicators to show activated
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmConditions 
   Caption         =   "Condition setting for individual channel"
   ClientHeight    =   5070
   ClientLeft      =   1980
   ClientTop       =   1050
   ClientWidth     =   6750
   MaxButton       =   0   'False
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   5070
   ScaleWidth      =   6750
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   15
      ItemData        =   "Conds.frx":0000
      Left            =   5160
      List            =   "Conds.frx":0013
      TabIndex        =   33
      Top             =   3600
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   14
      ItemData        =   "Conds.frx":0046
      Left            =   3480
      List            =   "Conds.frx":0059
      TabIndex        =   32
      Top             =   3600
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   13
      ItemData        =   "Conds.frx":008C
      Left            =   1800
      List            =   "Conds.frx":009F
      TabIndex        =   31
      Top             =   3600
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   12
      ItemData        =   "Conds.frx":00D2
      Left            =   120
      List            =   "Conds.frx":00E5
      TabIndex        =   30
      Top             =   3600
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   11
      ItemData        =   "Conds.frx":0118
      Left            =   5160
      List            =   "Conds.frx":012B
      TabIndex        =   29
      Top             =   2520
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   10
      ItemData        =   "Conds.frx":015E
      Left            =   3480
      List            =   "Conds.frx":0171
      TabIndex        =   28
      Top             =   2520
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   9
      ItemData        =   "Conds.frx":01A4
      Left            =   1800
      List            =   "Conds.frx":01B7
      TabIndex        =   27
      Top             =   2520
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   8
      ItemData        =   "Conds.frx":01EA
      Left            =   120
      List            =   "Conds.frx":01FD
      TabIndex        =   26
      Top             =   2520
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   7
      ItemData        =   "Conds.frx":0230
      Left            =   5160
      List            =   "Conds.frx":0243
      TabIndex        =   25
      Top             =   1440
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   6
      ItemData        =   "Conds.frx":0276
      Left            =   3480
      List            =   "Conds.frx":0289
      TabIndex        =   24
      Top             =   1440
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   5
      ItemData        =   "Conds.frx":02BC
      Left            =   1800
      List            =   "Conds.frx":02CF
      TabIndex        =   23
      Top             =   1440
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   4
      ItemData        =   "Conds.frx":0302
      Left            =   120
      List            =   "Conds.frx":0315
      TabIndex        =   22
      Top             =   1440
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   3
      ItemData        =   "Conds.frx":0348
      Left            =   5160
      List            =   "Conds.frx":035B
      TabIndex        =   21
      Top             =   360
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   2
      ItemData        =   "Conds.frx":038E
      Left            =   3480
      List            =   "Conds.frx":03A1
      TabIndex        =   20
      Top             =   360
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   1
      ItemData        =   "Conds.frx":03D4
      Left            =   1800
      List            =   "Conds.frx":03E7
      TabIndex        =   19
      Top             =   360
      Width           =   1455
   End
   Begin VB.ListBox lstCondition 
      Height          =   645
      Index           =   0
      ItemData        =   "Conds.frx":041A
      Left            =   120
      List            =   "Conds.frx":042D
      TabIndex        =   18
      Top             =   360
      Width           =   1455
   End
   Begin VB.CommandButton butCancel 
      Caption         =   "&Cancel"
      Height          =   495
      Left            =   5160
      TabIndex        =   0
      Top             =   4440
      Width           =   1455
   End
   Begin VB.CommandButton butOk 
      Caption         =   "&OK"
      Height          =   495
      Left            =   3480
      TabIndex        =   17
      Top             =   4440
      Width           =   1455
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 15"
      Height          =   255
      Index           =   15
      Left            =   5160
      TabIndex        =   16
      Top             =   3360
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 14"
      Height          =   255
      Index           =   14
      Left            =   3480
      TabIndex        =   15
      Top             =   3360
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 13"
      Height          =   255
      Index           =   13
      Left            =   1800
      TabIndex        =   14
      Top             =   3360
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 12"
      Height          =   255
      Index           =   12
      Left            =   120
      TabIndex        =   13
      Top             =   3360
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 11"
      Height          =   255
      Index           =   11
      Left            =   5160
      TabIndex        =   12
      Top             =   2280
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 10"
      Height          =   255
      Index           =   10
      Left            =   3480
      TabIndex        =   11
      Top             =   2280
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 9"
      Height          =   255
      Index           =   9
      Left            =   1800
      TabIndex        =   10
      Top             =   2280
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 8"
      Height          =   255
      Index           =   8
      Left            =   120
      TabIndex        =   9
      Top             =   2280
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 7"
      Height          =   255
      Index           =   7
      Left            =   5160
      TabIndex        =   8
      Top             =   1200
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 6"
      Height          =   255
      Index           =   6
      Left            =   3480
      TabIndex        =   7
      Top             =   1200
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 5"
      Height          =   255
      Index           =   5
      Left            =   1800
      TabIndex        =   6
      Top             =   1200
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 4"
      Height          =   255
      Index           =   4
      Left            =   120
      TabIndex        =   5
      Top             =   1200
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 3"
      Height          =   255
      Index           =   3
      Left            =   5160
      TabIndex        =   4
      Top             =   120
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 2"
      Height          =   255
      Index           =   2
      Left            =   3480
      TabIndex        =   3
      Top             =   120
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 1"
      Height          =   255
      Index           =   1
      Left            =   1800
      TabIndex        =   2
      Top             =   120
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Channel 0"
      Height          =   255
      Index           =   0
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   975
   End
End
Attribute VB_Name = "frmConditions"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Sub EnableItems(iStart As Integer, iStop As Integer, bEnabled As Boolean)
    If iStop > 15 Then iStop = 15
    If iStart < 0 Then iStart = 0
    
    While iStart <= iStop
        lstCondition(iStart).Enabled = bEnabled
        iStart = iStart + 1
    Wend
     
End Sub


Private Sub butCancel_Click()
    Unload frmConditions
End Sub


Private Sub butOk_Click()
Dim i As Integer
    
    'get selection
    For i = frmInit.cmbStartChl.ListIndex To frmInit.cmbStartChl.ListIndex + frmInit.cmbChlCount.ListIndex
        giCondition(i) = lstCondition(i).ListIndex
    Next i
    
    Unload frmConditions
End Sub


⌨️ 快捷键说明

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