when i click start it will start a time at 00:00 and will continue in sec untill i click stop .
how can i implement this
can u give the idea.
thanku®ards
sree
when i click start it will start a time at 00:00 and will continue in sec untill i click stop .
how can i implement this
can u give the idea.
thanku®ards
sree
step-1 Implement a timer
Step-2 Catch the key
Step-3 start the Timer
step-4 Increase the time until again key pressed,stop the timer
for timer use it "CTimer"
Remeber that the timers can be inaccurate, thus have a TTime variable as your class member, and call HomeTime() for it when you start the timer, then you could have a local TTime and call HomeTime() to it, and check the time passed between the two TTime variables.
Wiki should have nice examples on timers, so have a look into there.
actually
wht i need to develop is juat like call duration counter.
so can i use this TTime.
Sure, just mark down the time when the call starts, and check the time when the call ends. CTelephony would be the API for call monitoring, for which I'm rather sure wiki also has examples for.
thank u
but i have to update every sec
like 00:00
to 00:01
to 00.02 ....
so how can i do it
this is not for call functionality to use CTelephony,still can i use CTelephony .
thank u
then add a timer that expires every second, and start it when the call starts, and when it expires, just update your UI showing the Timer. You could do a bit of searching yourself, nobody here is going to design & implement the program for you, so its easier to search and try.