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

📄 frmvars.frm

📁 编译原理课程设计用vb编写
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmVars 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "调试窗口"
   ClientHeight    =   5085
   ClientLeft      =   4335
   ClientTop       =   4530
   ClientWidth     =   7230
   Icon            =   "frmVars.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5085
   ScaleWidth      =   7230
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton cmdAbort 
      Caption         =   "终止(&A)"
      Height          =   375
      Left            =   2880
      TabIndex        =   5
      Top             =   4560
      Width           =   1335
   End
   Begin VB.CommandButton cmdStep 
      Caption         =   "单步(Enter)"
      Default         =   -1  'True
      Height          =   375
      Left            =   4320
      TabIndex        =   4
      Top             =   4560
      Width           =   1335
   End
   Begin MSComctlLib.ListView lvCode 
      Height          =   3015
      Left            =   120
      TabIndex        =   3
      Top             =   1320
      Width           =   6975
      _ExtentX        =   12303
      _ExtentY        =   5318
      View            =   3
      LabelEdit       =   1
      LabelWrap       =   -1  'True
      HideSelection   =   0   'False
      Checkboxes      =   -1  'True
      FullRowSelect   =   -1  'True
      GridLines       =   -1  'True
      _Version        =   393217
      ForeColor       =   -2147483636
      BackColor       =   -2147483643
      BorderStyle     =   1
      Appearance      =   0
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Verdana"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      NumItems        =   3
      BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Text            =   "断点"
         Object.Width           =   970
      EndProperty
      BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   1
         Text            =   "行号"
         Object.Width           =   970
      EndProperty
      BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   2
         Text            =   "               代码"
         Object.Width           =   20179
      EndProperty
   End
   Begin VB.CommandButton cmdContinue 
      Cancel          =   -1  'True
      Caption         =   "继续(ESC)"
      Height          =   375
      Left            =   5760
      TabIndex        =   2
      Top             =   4560
      Width           =   1335
   End
   Begin MSComctlLib.ListView lv 
      Height          =   1095
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   6975
      _ExtentX        =   12303
      _ExtentY        =   1931
      View            =   3
      Arrange         =   2
      LabelEdit       =   1
      Sorted          =   -1  'True
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      FullRowSelect   =   -1  'True
      GridLines       =   -1  'True
      HotTracking     =   -1  'True
      _Version        =   393217
      ForeColor       =   -2147483642
      BackColor       =   -2147483644
      BorderStyle     =   1
      Appearance      =   0
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Verdana"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      NumItems        =   3
      BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Text            =   "变量名"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   1
         Text            =   "值"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   2
         Text            =   "类型"
         Object.Width           =   2540
      EndProperty
   End
   Begin VB.Label Label1 
      Caption         =   "程序暂停中..."
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   4680
      Width           =   2775
   End
End
Attribute VB_Name = "frmVars"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdAbort_Click()
    Unload Me
    frmResult.Hide
End Sub

Private Sub cmdContinue_Click()
    runFlag = True
    Unload Me
End Sub

Private Sub Command1_Click()
        
End Sub

Private Sub cmdStep_Click()
    runFlag = False
    Unload Me
End Sub

Private Sub Form_Load()
    If frmVars_top = 0 And frmVars_left = 0 Then Exit Sub
    Me.Top = frmVars_top
    Me.Left = frmVars_left
End Sub

Private Sub Form_Resize()
    Reflush
End Sub


Private Function Reflush()
    Dim a As ListItem
    '读入变量
    For i = 1 To globalCV.VarNames.Count
        Set a = lv.ListItems.Add(, , globalCV.VarNames(i))
        a.SubItems(1) = globalCV.getVar(globalCV.VarNames(i))
        a.SubItems(2) = "Double"
    Next
    '读入代码
    iss = Split(globalSource, vbCrLf)
    For i = 0 To UBound(iss)
        'lvCode.ListItems.Add , , i
        Set a = lvCode.ListItems.Add(, , "")
        a.SubItems(1) = i + 1
        a.SubItems(2) = iss(i)
        a.Checked = BanHave(i + 1)
        If ErrLine = i + 1 Then
            a.Bold = True
            a.ListSubItems(2).ForeColor = vbBlue
            a.Selected = True
        End If
    Next
    If ErrLine <> 0 Then
        '控制滚动条,让被执行的那行总可见
        lvCode.ListItems(ErrLine).EnsureVisible
        lvCode.SetFocus
    End If
End Function

Private Sub Form_Unload(Cancel As Integer)
    frmVars_top = Me.Top
    frmVars_left = Me.Left
End Sub

Private Sub lvCode_ItemCheck(ByVal Item As MSComctlLib.ListItem)
    If Item.Checked = True Then
        '加入断点列表
        BanAdd Int(Item.SubItems(1))
    Else
        '从列表删除
        BanDel Int(Item.SubItems(1))
    End If
End Sub

⌨️ 快捷键说明

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