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

📄 dialog.frm

📁 广州地铁一、二号线自动售票机模拟程序 VB
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Dialog 
   BackColor       =   &H00C0FFC0&
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "购票流程..."
   ClientHeight    =   4305
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   6000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4305
   ScaleWidth      =   6000
   ShowInTaskbar   =   0   'False
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   1000
      Left            =   5010
      Top             =   2070
   End
   Begin VB.CommandButton cmdReplay 
      Caption         =   "重新演示"
      Height          =   390
      Left            =   4560
      TabIndex        =   9
      Top             =   1230
      Width           =   1230
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "确定"
      Default         =   -1  'True
      Height          =   375
      Left            =   4560
      TabIndex        =   0
      Top             =   660
      Width           =   1215
   End
   Begin VB.Label lblSteps 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "↓"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   24
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   480
      Index           =   5
      Left            =   1950
      TabIndex        =   8
      Top             =   3120
      Visible         =   0   'False
      Width           =   480
   End
   Begin VB.Label lblSteps 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "↓"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   24
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   480
      Index           =   3
      Left            =   1950
      TabIndex        =   7
      Top             =   2115
      Visible         =   0   'False
      Width           =   480
   End
   Begin VB.Label lblSteps 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      AutoSize        =   -1  'True
      BackColor       =   &H00C0FFFF&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "取票、找零"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   20.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000008&
      Height          =   435
      Index           =   6
      Left            =   1110
      TabIndex        =   6
      Top             =   3600
      Visible         =   0   'False
      Width           =   2235
   End
   Begin VB.Label lblSteps 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      AutoSize        =   -1  'True
      BackColor       =   &H00C0FFFF&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "投币"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   20.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000008&
      Height          =   435
      Index           =   4
      Left            =   1740
      TabIndex        =   5
      Top             =   2625
      Visible         =   0   'False
      Width           =   900
   End
   Begin VB.Label lblSteps 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      AutoSize        =   -1  'True
      BackColor       =   &H00C0FFFF&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "购多张票"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   20.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000008&
      Height          =   435
      Index           =   2
      Left            =   1305
      TabIndex        =   4
      Top             =   1645
      Visible         =   0   'False
      Width           =   1770
   End
   Begin VB.Label lblSteps 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "↓"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   24
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   480
      Index           =   1
      Left            =   1950
      TabIndex        =   3
      Top             =   1110
      Visible         =   0   'False
      Width           =   480
   End
   Begin VB.Label lblSteps 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      AutoSize        =   -1  'True
      BackColor       =   &H00C0FFFF&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "选站名"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   20.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000008&
      Height          =   435
      Index           =   0
      Left            =   1515
      TabIndex        =   2
      Top             =   660
      Visible         =   0   'False
      Width           =   1350
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackColor       =   &H00C0E0FF&
      BackStyle       =   0  'Transparent
      Caption         =   "地铁单程票自动售票机购票流程:"
      BeginProperty Font 
         Name            =   "黑体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   285
      Left            =   90
      TabIndex        =   1
      Top             =   105
      Width           =   4500
   End
End
Attribute VB_Name = "Dialog"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit
Const nTips = 6
Dim nIndex As Integer

' 重新演示
Private Sub cmdReplay_Click()
    Call hideAllTips
    Timer1.Enabled = True
    nIndex = 0
End Sub

Private Sub Form_Load()

Call hideAllTips
nIndex = 0
Timer1.Enabled = True

End Sub

Private Sub OKButton_Click()

Timer1.Enabled = False
Me.Hide

End Sub

Private Sub showTips(ByVal n As Integer)

lblSteps(n).Visible = True

End Sub

Private Sub hideAllTips()
Dim i As Integer

For i = 0 To nTips
    lblSteps(i).Visible = False
Next

End Sub

Private Sub Timer1_Timer()

If nIndex > nTips Then
    Timer1.Enabled = False      ' 停止动画
Else
    Call showTips(nIndex)
    nIndex = nIndex + 1
End If

End Sub

⌨️ 快捷键说明

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