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

📄 rplycnfg.frm

📁 gps 源码 vb+access 其他地方很难找到 很详细的说明
💻 FRM
字号:
VERSION 5.00
Begin VB.Form ReplayConfigForm 
   Caption         =   "重放设置"
   ClientHeight    =   2115
   ClientLeft      =   2625
   ClientTop       =   1620
   ClientWidth     =   4920
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   2115
   ScaleWidth      =   4920
   Begin VB.CheckBox chkReverse 
      Caption         =   "反向"
      BeginProperty Font 
         Name            =   "System"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2520
      TabIndex        =   10
      Top             =   240
      Width           =   855
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "关闭"
      BeginProperty Font 
         Name            =   "System"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3960
      TabIndex        =   9
      Top             =   1440
      Width           =   855
   End
   Begin VB.CommandButton cmdOk 
      Caption         =   "更新"
      Default         =   -1  'True
      BeginProperty Font 
         Name            =   "System"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3960
      TabIndex        =   8
      Top             =   840
      Visible         =   0   'False
      Width           =   855
   End
   Begin VB.HScrollBar HScrollPlaySpeed 
      Height          =   255
      LargeChange     =   4
      Left            =   240
      Max             =   16
      Min             =   -16
      TabIndex        =   0
      Top             =   1680
      Value           =   1
      Width           =   3495
   End
   Begin VB.TextBox txtPlaySpeed 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   0  'None
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "System"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   1440
      TabIndex        =   7
      Top             =   1440
      Width           =   2295
   End
   Begin VB.HScrollBar HScrollTime 
      Height          =   255
      LargeChange     =   10
      Left            =   240
      Max             =   100
      TabIndex        =   2
      Top             =   1080
      Width           =   3495
   End
   Begin VB.TextBox txtTime 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   0  'None
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "System"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   1440
      TabIndex        =   6
      Top             =   840
      Width           =   2295
   End
   Begin VB.CheckBox chkPause 
      Caption         =   "暂停"
      BeginProperty Font 
         Name            =   "System"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1560
      TabIndex        =   5
      Top             =   240
      Width           =   855
   End
   Begin VB.CheckBox chkContinuous 
      Caption         =   "循环"
      BeginProperty Font 
         Name            =   "System"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   480
      TabIndex        =   4
      Top             =   240
      Width           =   975
   End
   Begin VB.Label Label2 
      Caption         =   "重放时间"
      BeginProperty Font 
         Name            =   "System"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   240
      TabIndex        =   3
      Top             =   840
      Width           =   1095
   End
   Begin VB.Label Label1 
      Caption         =   "重放速度"
      BeginProperty Font 
         Name            =   "System"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   240
      TabIndex        =   1
      Top             =   1440
      Width           =   1215
   End
End
Attribute VB_Name = "ReplayConfigForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Public Function SetTime()
    Dim lCurrentRecord As Long
    Dim oRPFile As CReplayFile
    On Error Resume Next
    Set oRPFile = MDIMainForm.oWorkMode.oReplayStream.GetReplayFile
    lCurrentRecord = oRPFile.GetCurrentRecord
    If HScrollTime.Value = HScrollTime.Max Then
       HScrollTime.Value = HScrollTime.Min
    End If
    If lCurrentRecord <= HScrollTime.Max Then
       HScrollTime.Value = oRPFile.GetCurrentRecord
    End If
    
    txtTime.Text = Format(oRPFile.GetBuffRecord.dTime, "yyyy mm dd hh:mm:ss AMPM")
End Function
Private Function TransPlaySpeed(lPlaySpeed As Long) As String
    If lPlaySpeed < -1 Then
        TransPlaySpeed = "1/" + Trim(str(Abs(lPlaySpeed))) + "倍速"
    End If
    If lPlaySpeed >= -1 And lPlaySpeed <= 1 Then
        TransPlaySpeed = "1倍速"
    End If
    If lPlaySpeed > 1 Then
        TransPlaySpeed = Trim(str(lPlaySpeed)) + "倍速"
    End If
End Function

Private Sub chkContinuous_Click()
    Apply
End Sub

Private Sub chkPause_Click()
    Apply
End Sub

Private Sub chkReverse_Click()
    Apply
End Sub

Private Sub cmdCancel_Click()
    Unload Me
End Sub

Private Sub Apply()
    Dim oRPFile As CReplayFile
    Dim oRepalyStream As CReplayStream
    
    Set oReplayStream = MDIMainForm.oWorkMode.oReplayStream
    If TypeName(oReplayStream) <> "CReplayStream" Then
        Exit Sub
    End If
    Set oRPFile = oReplayStream.GetReplayFile
    
    If chkContinuous.Value = 1 Then
        oReplayStream.SetContinuous (True)
    Else
        oReplayStream.SetContinuous (False)
    End If
    If chkPause.Value = 1 Then
        oReplayStream.SetPause (True)
    Else
        oReplayStream.SetPause (False)
    End If
    If chkReverse.Value = 1 Then
        oReplayStream.SetReverse (True)
    Else
        oReplayStream.SetReverse (False)
    End If
    MDIMainForm.mnu_replay_pause.Checked = oReplayStream.GetPause
    MDIMainForm.mnu_replay_reverse.Checked = oReplayStream.GetReverse
    MDIMainForm.mnu_replay_continuous.Checked = oReplayStream.GetContinuous
    oReplayStream.SetPlaySpeed (HScrollPlaySpeed.Value)
    'oRPFile.GoToRecord (HScrollTime.Value)
End Sub


Private Sub Form_Load()
    Dim lCurrentRecord As Long
    Dim oRPFile As CReplayFile
    Dim oRepalyStream As CReplayStream
    
    Set oReplayStream = MDIMainForm.oWorkMode.oReplayStream
    Set oRPFile = oReplayStream.GetReplayFile
    
    If oReplayStream.GetContinuous Then
        chkContinuous.Value = 1
    Else
        chkContinuous.Value = 0
    End If
    If oReplayStream.GetPause Then
        chkPause.Value = 1
    Else
        chkPause.Value = 0
    End If
    If oReplayStream.GetReverse Then
        chkReverse.Value = 1
    Else
        chkReverse.Value = 0
    End If
    HScrollPlaySpeed.Value = oReplayStream.GetPlaySpeed
    txtPlaySpeed.Text = TransPlaySpeed(HScrollPlaySpeed.Value)
    HScrollTime.Min = Wzq
    HScrollTime.Max = Wzh 'oRPFile.GetMaxRecord
    lCurrentRecord = oRPFile.GetCurrentRecord
    If lCurrentRecord <= HScrollTime.Max Then
        HScrollTime.Value = oRPFile.GetCurrentRecord
    End If
    txtTime.Text = Format(oRPFile.GetBuffRecord.dTime, "yyyy mm dd hh:mm:ss AMPM")
End Sub

Private Sub HScrollPlaySpeed_Change()
    txtPlaySpeed.Text = TransPlaySpeed(HScrollPlaySpeed.Value)
    Apply
End Sub

Private Sub HScrollTime_Change()
    Apply
End Sub

⌨️ 快捷键说明

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