Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - EnableCallbackTimer Bug?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

EnableCallbackTimer Bug?

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: EnableCallbackTimer Bug?
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.