AnimationCtrl/VB/Testfrm.frm
VERSION 5.00
Begin VB.Form Testfrm
Caption = "CAnimateCtrl sample"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 6615
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 6615
StartUpPosition = 3 'Windows‑Standard
Begin VB.CheckBox Check1
Caption = "visible"
Height = 195
Left = 3360
TabIndex = 2
Top = 2880
Width = 795
End
Begin VB.CommandButton Command2
Caption = "Scan"
Height = 315
Left = 1680
TabIndex = 1
Top = 2820
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "Find"
Height = 315
Left = 60
TabIndex = 0
Top = 2820
Width = 1575
End
Begin VB.Label Label1
Caption = "(click on form to move control)"
Height = 195
Left = 4320
TabIndex = 3
Top = 2880
Width = 2175
End
End
Attribute VB_Name = "Testfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'(c)2001, 2004 by Louis. Demonstration how one might use AnimationCtrlmod.bas.
'
'Downloaded from www.louis‑coder.com.
'This sample demonstrates how you can play (not too large) AVI clips within VB.
'AnimationCtrl_Sample.dll must be located in the program and/or Windows‑(system‑)
'directory to make the stuff work. As ParentForm you can use a Form, or a PictureBox.
'Sample usage: Toricxs (www.toricxs.com)
Private Sub Form_Load()
'on error resume next
Call AnimationControl_Create(0, 0, Testfrm)
Call AnimationControl_Hide
End Sub
Private Sub Command1_Click()
'on error resume next
Testfrm.Caption = "Application is searching for files, please wait..."
Check1.Value = 1
If AnimationControl_Open(App.Path + "\" + "FINDFILE.AVI") = False Then MsgBox "File not found !", vbOKOnly + vbExclamation
Call AnimationControl_Play(0, ‑1, ‑1)
End Sub
Private Sub Command2_Click()
'on error resume next
Testfrm.Caption = "Scanning..."
Check1.Value = 1
If AnimationControl_Open(App.Path + "\" + "SCANDIGIT.AVI") = False Then MsgBox "File not found !", vbOKOnly + vbExclamation
Call AnimationControl_Play(0, ‑1, ‑1)
End Sub
Private Sub Check1_Click()
'on error resume next
If Check1.Value = 1 Then
Call AnimationControl_Show
Call AnimationControl_Play(1, ‑1, ‑1)
Else
Call AnimationControl_Hide
End If
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'on error resume next
Call AnimationControl_Move(X, Y) 'control sizes itself (depending on AVI clip size)
End Sub
Private Sub Form_Unload(Cancel As Integer)
'on error resume next
Call AnimationControl_Destroy 'clean up
End Sub
[END OF FILE]