mainform.frm

来自「VaxSIPUserAgentSDK」· FRM 代码 · 共 1,947 行 · 第 1/4 页

FRM
1,947
字号
      Top             =   2040
      Width           =   3135
      Begin VB.CheckBox CheckSpkMute 
         Caption         =   "Mute"
         Height          =   255
         Left            =   2280
         TabIndex        =   29
         Top             =   240
         Width           =   735
      End
      Begin VB.CheckBox CheckMuteMic 
         Caption         =   "Mute"
         Height          =   255
         Left            =   2280
         TabIndex        =   28
         Top             =   720
         Width           =   735
      End
      Begin ComctlLib.Slider SliderSpkVol 
         Height          =   255
         Left            =   240
         TabIndex        =   30
         Top             =   480
         Width           =   2775
         _ExtentX        =   4895
         _ExtentY        =   450
         _Version        =   327682
         TickStyle       =   3
         TickFrequency   =   10
      End
      Begin ComctlLib.Slider SliderMicVol 
         Height          =   255
         Left            =   240
         TabIndex        =   31
         Top             =   1080
         Width           =   2775
         _ExtentX        =   4895
         _ExtentY        =   450
         _Version        =   327682
         TickStyle       =   3
         TickFrequency   =   10
      End
      Begin VB.Label LabelSpeakerVol 
         Caption         =   "Speaker:"
         Height          =   255
         Left            =   120
         TabIndex        =   33
         Top             =   240
         Width           =   855
      End
      Begin VB.Label LabelMicVol 
         Caption         =   "Microphone:"
         Height          =   255
         Left            =   120
         TabIndex        =   32
         Top             =   720
         Width           =   1215
      End
   End
   Begin VB.Frame Frame3 
      Caption         =   " Status Log "
      Height          =   2655
      Left            =   9240
      TabIndex        =   26
      Top             =   2640
      Width           =   3855
      Begin VB.CommandButton BtnClearLog 
         Caption         =   "Clear"
         Height          =   465
         Left            =   2520
         TabIndex        =   46
         Top             =   2040
         Width           =   1215
      End
      Begin VB.ListBox ListStatusLog 
         Height          =   1620
         Left            =   120
         TabIndex        =   45
         Top             =   240
         Width           =   3615
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   " Incoming Call(s) "
      Height          =   3975
      Left            =   2760
      TabIndex        =   25
      Top             =   2160
      Width           =   3135
      Begin VB.CheckBox CheckPlayRingTone 
         Caption         =   "Play ringtone"
         Height          =   255
         Left            =   1200
         TabIndex        =   89
         Top             =   2760
         Value           =   1  'Checked
         Width           =   1695
      End
      Begin VB.ComboBox ComboIncomingCall 
         Height          =   315
         Left            =   1200
         Style           =   2  'Dropdown List
         TabIndex        =   87
         Top             =   3120
         Width           =   1815
      End
      Begin VB.ListBox ListIncomingCallIds 
         Enabled         =   0   'False
         Height          =   255
         Left            =   1425
         TabIndex        =   86
         Top             =   3480
         Visible         =   0   'False
         Width           =   270
      End
      Begin VB.ListBox ListIncomingCall 
         Height          =   2400
         Left            =   120
         TabIndex        =   85
         Top             =   240
         Width           =   2895
      End
      Begin VB.CommandButton BtnReject 
         Caption         =   "Reject Call"
         Height          =   345
         Left            =   1800
         TabIndex        =   44
         Top             =   3480
         Width           =   1215
      End
      Begin VB.CommandButton BtnAccept 
         Caption         =   "Accept Call"
         Height          =   345
         Left            =   120
         TabIndex        =   43
         Top             =   3480
         Width           =   1215
      End
      Begin VB.Label Label15 
         Caption         =   "Select Line:"
         Height          =   255
         Left            =   120
         TabIndex        =   88
         Top             =   3120
         Width           =   1095
      End
   End
   Begin VB.CommandButton BtnHangUp 
      Caption         =   "HangUp"
      Height          =   345
      Left            =   1560
      TabIndex        =   24
      Top             =   5160
      Width           =   1095
   End
   Begin VB.CommandButton BtnDial 
      Caption         =   "Dial"
      Height          =   345
      Left            =   240
      TabIndex        =   23
      Top             =   5160
      Width           =   1095
   End
   Begin VB.CommandButton BtnDialPadNo 
      Caption         =   "#"
      Height          =   375
      Left            =   1920
      TabIndex        =   22
      Top             =   4200
      Width           =   735
   End
   Begin VB.CommandButton BtnDialPad0 
      Caption         =   "0"
      Height          =   375
      Left            =   1080
      TabIndex        =   21
      Top             =   4200
      Width           =   735
   End
   Begin VB.CommandButton BtnDialPadStar 
      Caption         =   "*"
      Height          =   375
      Left            =   240
      TabIndex        =   20
      Top             =   4200
      Width           =   735
   End
   Begin VB.CommandButton BtnDialPad9 
      Caption         =   "9"
      Height          =   375
      Left            =   1920
      TabIndex        =   19
      Top             =   3720
      Width           =   735
   End
   Begin VB.CommandButton BtnDialPad8 
      Caption         =   "8"
      Height          =   375
      Left            =   1080
      TabIndex        =   18
      Top             =   3720
      Width           =   735
   End
   Begin VB.CommandButton BtnDialPad7 
      Caption         =   "7"
      Height          =   375
      Left            =   240
      TabIndex        =   17
      Top             =   3720
      Width           =   735
   End
   Begin VB.CommandButton BtnDialPad6 
      Caption         =   "6"
      Height          =   375
      Left            =   1920
      TabIndex        =   16
      Top             =   3240
      Width           =   735
   End
   Begin VB.CommandButton BtnDialPad5 
      Caption         =   "5"
      Height          =   375
      Left            =   1080
      TabIndex        =   15
      Top             =   3240
      Width           =   735
   End
   Begin VB.CommandButton BtnDialPad4 
      Caption         =   "4"
      Height          =   375
      Left            =   240
      TabIndex        =   14
      Top             =   3240
      Width           =   735
   End
   Begin VB.CommandButton BtnDialPad3 
      Caption         =   "3"
      Height          =   375
      Left            =   1920
      TabIndex        =   13
      Top             =   2760
      Width           =   735
   End
   Begin VB.CommandButton BtnDialPad2 
      Caption         =   "2"
      Height          =   375
      Left            =   1080
      TabIndex        =   12
      Top             =   2760
      Width           =   735
   End
   Begin VB.CommandButton BtnDialPad1 
      Caption         =   "1"
      Height          =   375
      Left            =   240
      TabIndex        =   11
      Top             =   2760
      Width           =   735
   End
   Begin VB.TextBox EditPhoneNo 
      Height          =   315
      Left            =   240
      TabIndex        =   10
      Top             =   2280
      Width           =   2415
   End
   Begin VB.Frame Frame1 
      Caption         =   " SIP Proxy Settings "
      Height          =   1935
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   5775
      Begin VB.CheckBox CheckRegisterToProxy 
         Caption         =   "Register to SIP Proxy"
         Height          =   210
         Left            =   120
         TabIndex        =   106
         Top             =   1560
         Value           =   1  'Checked
         Width           =   2295
      End
      Begin VB.TextBox EditDisplayName 
         Height          =   315
         Left            =   120
         TabIndex        =   96
         Top             =   1200
         Width           =   2055
      End
      Begin VB.TextBox EditTotalLines 
         Height          =   315
         Left            =   3960
         TabIndex        =   55
         Text            =   "8"
         Top             =   480
         Width           =   1575
      End
      Begin VB.CheckBox CheckEnableSoundDevice 
         Caption         =   "Use sound device"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   3960
         TabIndex        =   54
         Top             =   1560
         Value           =   1  'Checked
         Width           =   1695
      End
      Begin VB.CommandButton BtnOnline 
         Caption         =   "Online"
         Height          =   525
         Left            =   3960
         TabIndex        =   9
         Top             =   960
         Width           =   1575
      End
      Begin VB.TextBox EditOutBoundProxy 
         Height          =   315
         Left            =   2280
         TabIndex        =   8
         Top             =   1200
         Width           =   1575
      End
      Begin VB.TextBox EditSIPProxy 
         Height          =   315
         Left            =   2280
         TabIndex        =   7
         Top             =   480
         Width           =   1575
      End
      Begin VB.TextBox EditLoginPwd 
         Height          =   315
         Left            =   1200
         TabIndex        =   6
         Top             =   480
         Width           =   975
      End
      Begin VB.TextBox EditLoginId 
         Height          =   315
         Left            =   120
         TabIndex        =   5
         Top             =   480
         Width           =   975
      End
      Begin VB.Label Label18 
         Caption         =   "Display-Name"
         Height          =   255
         Left            =   120
         TabIndex        =   97
         Top             =   960
         Width           =   1575
      End
      Begin VB.Label Label5 
         Caption         =   "Total Lines"
         Height          =   255
         Left            =   3960
         TabIndex        =   56
         Top             =   240
         Width           =   1335
      End
      Begin VB.Label Label4 
         Caption         =   "Outbound-Proxy"
         Height          =   255
         Left            =   2280
         TabIndex        =   4
         Top             =   960
         Width           =   1575
      End
      Begin VB.Label Label3 
         Caption         =   "SIP Proxy"
         Height          =   255
         Left            =   2280
         TabIndex        =   3
         Top             =   240
         Width           =   1095
      End
      Begin VB.Label Label2 
         Caption         =   "Password"
         Height          =   255
         Left            =   1200
         TabIndex        =   2
         Top             =   240
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "Login"
         Height          =   255
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   855
      End
   End
   Begin ComctlLib.ProgressBar MicProgress 
      Height          =   255
      Left            =   9360
      TabIndex        =   93
      Top             =   7800
      Width           =   3495
      _ExtentX        =   6165
      _ExtentY        =   450
      _Version        =   327682
      Appearance      =   1
   End
   Begin VB.Label Label16 
      Caption         =   "Microphone:"
      Height          =   255
      Left            =   9360
      TabIndex        =   95
      Top             =   7560
      Width           =   1215
   End
   Begin VB.Label Label10 
      Caption         =   "Speaker:"
      Height          =   255
      Left            =   9360
      TabIndex        =   94
      Top             =   6960
      Width           =   855
   End
   Begin VB.Label Label6 
      Caption         =   "Select Line:"
      Height          =   255
      Left            =   240
      TabIndex        =   60
      Top             =   4800
      Width           =   1095
   End
End
Attribute VB_Name = "MainForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Const SND_FILENAME = &H20000
Private Const SND_LOOP = &H8
Private Const SND_ASYNC = &H1
Private Const SND_NODEFAULT = &H2

Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" _
  (lpszName As Any, ByVal hModule As Long, ByVal dwFlags As Long) As Boolean

Private Sub BtnClearLog_Click()
    ListStatusLog.Clear
End Sub

Private Sub BtnDialPad0_Click()
    EditPhoneNo.Text = EditPhoneNo.Text + "0"
    Result = VaxSIPUserAgentOCX.DigitDTMF(ComboDial.ListIndex, "0")
End Sub

Private Sub BtnDialPad1_Click()
    EditPhoneNo.Text = EditPhoneNo.Text + "1"
    Result = VaxSIPUserAgentOCX.DigitDTMF(ComboDial.ListIndex, "1")
End Sub

Private Sub BtnDialPad2_Click()
    EditPhoneNo.Text = EditPhoneNo.Text + "2"
    Result = VaxSIPUserAgentOCX.DigitDTMF(ComboDial.ListIndex, "2")
End Sub

Private Sub BtnDialPad3_Click()
    EditPhoneNo.Text = EditPhoneNo.Text + "3"
    Result = VaxSIPUserAgentOCX.DigitDTMF(ComboDial.ListIndex, "3")
End Sub

Private Sub BtnDialPad4_Click()
    EditPhoneNo.Text = EditPhoneNo.Text + "4"
    Result = VaxSIPUserAgentOCX.DigitDTMF(ComboDial.ListIndex, "4")
End Sub

Private Sub BtnDialPad5_Click()
    EditPhoneNo.Text = EditPhoneNo.Text + "5"
    Result = VaxSIPUserAgentOCX.DigitDTMF(ComboDial.ListIndex, "5")
End Sub

Private Sub BtnDialPad6_Click()
    EditPhoneNo.Text = EditPhoneNo.Text + "6"
    Result = VaxSIPUserAgentOCX.DigitDTMF(ComboDial.ListIndex, "6")
End Sub

⌨️ 快捷键说明

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