EnableCallbackTimer Bug? |
Post Reply |
Author | |
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
Posted: 23 January 2008 at 7:37pm |
It seems that calling EnableCallbackTimer = False inside the Timer event of a TaskDialog control doesn't stop the callback timer from firing...Example:
Private Sub TaskDialog1_Timer(ByVal MilliSeconds As Long, Reset As Variant) mlngDialogFirings = mlngDialogFirings + 1 Debug.Print mlngDialogFirings ' Keeps printing even after calling EnableCallbackTimer = False (below) If MilliSeconds >= (mclngRetryAttempts * mclngRetryDelayMS) Then With mobjTaskDialog.TaskDialog .EnableCallbackTimer = False ' Should stop the callback, but it doesn't! .ProgressBarStyle = xtpTaskProgressBarNone .MainInstructionText = "Could not connect to project" .WindowTitle = "Project Locked" .EnableButton xtpTaskButtonRetry, True End With End If End If End Sub Any chance of a fix? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
yes, there is no way to stop timer. Add some variable that indicates that timer started/stopped.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |