?? animation.frm
字號:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form Form1
Caption = "Animation Control: AVI Video-Only Player"
ClientHeight = 4620
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 4620
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin MSComCtl2.Animation Animation1
Height = 3975
Left = 0
TabIndex = 1
Top = 0
Width = 4695
_ExtentX = 8281
_ExtentY = 7011
_Version = 393216
FullWidth = 313
FullHeight = 265
End
Begin VB.CommandButton cmdGetAVI
Caption = "Get AVI File to Play"
Height = 495
Left = 120
TabIndex = 0
Top = 4080
Width = 4455
End
Begin MSComDlg.CommonDialog CommonDialog1
Left = 3840
Top = 240
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Fig. 20.9
' Using the Animation Control to play AVI files
Option Explicit
Private Sub Form_Load()
Call SizeComponents
End Sub
Private Sub cmdGetAVI_Click()
CommonDialog1.Filter = "AVI (*.avi)|*.avi"
CommonDialog1.ShowOpen
On Error GoTo errorhandler
Call Animation1.Open(CommonDialog1.FileName)
Call Animation1.Play
Exit Sub
errorhandler:
MsgBox ("Cannot play AVI files containing audio. " & _
"Please choose another file.")
End Sub
Private Sub Form_Resize()
Call SizeComponents
End Sub
Private Sub SizeComponents()
On Error Resume Next
cmdGetAVI.Left = 0
cmdGetAVI.Width = ScaleWidth
cmdGetAVI.Top = ScaleHeight - cmdGetAVI.Height
Animation1.Width = ScaleWidth
Animation1.Height = ScaleHeight - cmdGetAVI.Height
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -