Print Page | Close Window

EnableCallbackTimer Bug?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9399
Printed Date: 16 November 2024 at 2:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: EnableCallbackTimer Bug?
Posted By: jpbro
Subject: EnableCallbackTimer Bug?
Date 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?



Replies:
Posted By: Oleg
Date Posted: 24 January 2008 at 1:02am
yes, there is no way to stop timer. Add some variable that indicates that timer started/stopped.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net