GFLabelAnimation/Testfrm.frm
VERSION 5.00
Begin VB.Form Testfrm
Caption = "Form1"
ClientHeight = 3075
ClientLeft = 60
ClientTop = 465
ClientWidth = 7575
LinkTopic = "Form1"
ScaleHeight = 3075
ScaleWidth = 7575
StartUpPosition = 3 'Windows‑Standard
Begin VB.CommandButton Command2
Caption = "Abort"
Height = 375
Left = 1800
TabIndex = 2
Top = 540
Width = 1815
End
Begin VB.CommandButton Command1
Caption = "SwipSwap"
Height = 375
Left = 60
TabIndex = 1
Top = 540
Width = 1695
End
Begin VB.Label TestLabel
Caption = "TestLabel"
BeginProperty Font
Name = "Fixedsys"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 60
TabIndex = 0
Top = 120
Width = 7455
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 by Louis. Test form for GFLabelAnimation.
Dim CancelFlag As Boolean
Private Sub Command1_Click()
'on error resume next
CancelFlag = False 'reset
Call GFLabelAnimationfrm.GFLabelAnimation_SwipSwap(TestLabel, 1, 1!, 2, True, Me)
Call GFLabelAnimationfrm.GFLabelAnimation_SwipSwap(TestLabel, 1, 1.25!, 2, True, Me)
Call GFLabelAnimationfrm.GFLabelAnimation_SwipSwap(TestLabel, 1, 1.5!, 2, True, Me)
Call GFLabelAnimationfrm.GFLabelAnimation_SwipSwap(TestLabel, 1, 1.25!, 2, True, Me)
Call GFLabelAnimationfrm.GFLabelAnimation_SwipSwap(TestLabel, 1, 1!, 2, True, Me)
End Sub
Private Sub Command2_Click()
'on error resume next
CancelFlag = True
End Sub
Public Sub GFLabelAnimation_Tick(ByRef CancelAnimationFlag As Boolean, ByRef ResetLabelTextPosFlag As Boolean)
'on error resume next
DoEvents
CancelAnimationFlag = CancelFlag
ResetLabelTextPosFlag = False
End Sub
[END OF FILE]