×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    How can i stop CPeriodic Timer for specified period of time???

    Hi,

    currently i m using CPeriodic Timer in my application and its work fine. But now i want to stop timer whenever dialog is showing and start it again when dialog is dismissed. How can i?

    savaj.....

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    179

    Re: How can i stop CPeriodic Timer for specified period of time???

    Isn't it just a case of calling Cancel() on your CPeriodic object when your dialog appears?
    Symsource Ltd.
    [url]www.symsource.com[/url]

  3. #3
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: How can i stop CPeriodic Timer for specified period of time???

    hi KevinD
    Thanx for reply..

    How can i Resume timer remaining time???

  4. #4
    Registered User
    Join Date
    Dec 2003
    Posts
    19

    Re: How can i stop CPeriodic Timer for specified period of time???

    Hi,

    You have to calculate the time using TTime "HomeTime()"/"MicroSecondsFrom()" methods and re-request the timer event with the interval equivalent to time difference obtained by "MicroSecondsFrom()".

  5. #5
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: How can i stop CPeriodic Timer for specified period of time???

    If you want something like "pause", then there is no direct way of doing that with CPeriodic, as said by Kevin, you can use start() and stop() methods according to your need.

  6. #6
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: How can i stop CPeriodic Timer for specified period of time???

    Hi vasant

    Yes i want something like "pause", and there is no method like stop()in CPeriodic, so delete this timer and start it again whenever it is required.

    savaj....

  7. #7
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: How can i stop CPeriodic Timer for specified period of time???

    opps my bad, its Cancel() and no need to delete the timer, you can simply call Cancel() on the timer and start it again, but for "Pause" behaviour you need implement your own logic.

  8. #8
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: How can i stop CPeriodic Timer for specified period of time???

    Ok thanx
    i got it..

Similar Threads

  1. Bizarre calendar/time zone change handling in Nokia 9500
    By noetus in forum General Development Questions
    Replies: 0
    Last Post: 2005-09-19, 19:27
  2. Timer delay between playbacks???
    By lalitsharma in forum Symbian
    Replies: 3
    Last Post: 2005-09-09, 11:45
  3. Log time bug on 3650. Help me please.
    By hemenkap in forum General Development Questions
    Replies: 2
    Last Post: 2005-06-30, 07:18
  4. 8210 - Need a real time timer during calls!
    By ozzietj2002 in forum General Development Questions
    Replies: 0
    Last Post: 2004-01-01, 05:31
  5. SMS time stamp format with time zone parameter?
    By turunhe in forum General Messaging
    Replies: 1
    Last Post: 2002-06-11, 07:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×