FORM1.FRM
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:3k
源码类别:

Windows编程

开发平台:

Visual C++

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "DTL Test"
  4.    ClientHeight    =   4095
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   4740
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   4095
  10.    ScaleWidth      =   4740
  11.    StartUpPosition =   3  'Windows Default
  12.    Begin VB.CommandButton cmdFile 
  13.       Caption         =   "Speak File"
  14.       Height          =   375
  15.       Left            =   3120
  16.       TabIndex        =   6
  17.       Top             =   3120
  18.       Width           =   1215
  19.    End
  20.    Begin VB.TextBox txtFile 
  21.       Height          =   405
  22.       Left            =   360
  23.       TabIndex        =   5
  24.       Text            =   "d:atl25nonshipsamplesatlagentagentctl.cpp"
  25.       Top             =   3120
  26.       Width           =   2415
  27.    End
  28.    Begin VB.TextBox txtSpeed 
  29.       Height          =   405
  30.       Left            =   360
  31.       TabIndex        =   4
  32.       Text            =   "10"
  33.       Top             =   2520
  34.       Width           =   2415
  35.    End
  36.    Begin VB.CommandButton cmdSpeak 
  37.       Caption         =   "Speak"
  38.       Height          =   375
  39.       Left            =   3120
  40.       TabIndex        =   3
  41.       Top             =   1920
  42.       Width           =   1215
  43.    End
  44.    Begin VB.TextBox txtSpeak 
  45.       Height          =   375
  46.       Left            =   360
  47.       TabIndex        =   2
  48.       Text            =   "This is a test"
  49.       Top             =   1920
  50.       Width           =   2415
  51.    End
  52.    Begin VB.CommandButton cmdPlay 
  53.       Caption         =   "Play"
  54.       Height          =   375
  55.       Left            =   1200
  56.       TabIndex        =   1
  57.       Top             =   1080
  58.       Width           =   1215
  59.    End
  60.    Begin VB.Label Label1 
  61.       Caption         =   "ATL Agent Test"
  62.       BeginProperty Font 
  63.          Name            =   "Comic Sans MS"
  64.          Size            =   15.75
  65.          Charset         =   0
  66.          Weight          =   700
  67.          Underline       =   0   'False
  68.          Italic          =   0   'False
  69.          Strikethrough   =   0   'False
  70.       EndProperty
  71.       Height          =   495
  72.       Left            =   120
  73.       TabIndex        =   0
  74.       Top             =   120
  75.       Width           =   2655
  76.    End
  77. End
  78. Attribute VB_Name = "Form1"
  79. Attribute VB_GlobalNameSpace = False
  80. Attribute VB_Creatable = False
  81. Attribute VB_PredeclaredId = True
  82. Attribute VB_Exposed = False
  83. Dim agent As AgentCtl
  84. Private Sub cmdFile_Click()
  85.     agent.Speed = txtSpeed
  86.     agent.SpeakFile (txtFile)
  87. End Sub
  88. Private Sub cmdPlay_Click()
  89.     agent.Speed = txtSpeed
  90.     agent.Play
  91. End Sub
  92. Private Sub cmdSpeak_Click()
  93.     agent.Speed = txtSpeed
  94.     agent.SpeakText (txtSpeak)
  95. End Sub
  96. Private Sub Form_Load()
  97.     Set agent = New AgentCtl
  98. End Sub