Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

multi-timer in C55

14 views
Skip to first unread message

Chris Ammann

unread,
Sep 29, 2003, 5:59:47 PM9/29/03
to
Is it possible to set up more than one timer in the same window? Actually clarion doesn't permit several timer but there might be an other template that works around this limitation
 
thanks chris

Neal Phillips

unread,
Sep 29, 2003, 6:13:37 PM9/29/03
to
Hi Chris
You can do something like this:
If you want to have 'A' happen every 10 seconds,  'B' happen every minute and 'C' happen every hour then 
set the timer for 10 seconds (do 'A') and increment variable L:B and L:C.
If L:B is now 6 (60 seconds) set it back to zero and do B.
If L:C is now 360 (1 hour) set it back to zero and do C
etc.
HTH
Neal
"Chris Ammann" <ch...@caltechnix.com.mx> wrote in message news:3f78...@news.softvelocity.com...

Dennis E. Evans

unread,
Sep 29, 2003, 7:42:37 PM9/29/03
to
Hi all,

"Chris Ammann" <ch...@caltechnix.com.mx> wrote in message

>Is it possible to set up more than one timer in the same window? Actually


clarion >doesn't permit several timer but there might be an other template
that works >around this limitation

Use the API functions SetTimer, KillTimer. I recommend that you use a
Timerproc callback, simpler than trying to grab timer events in a sub
classed function.


Dennis


Chris Ammann

unread,
Oct 1, 2003, 12:38:17 PM10/1/03
to
Wow Scott !

Thank you very very much. It works all fine.
We had so much problems before, cuz it needed so much processor performance.

Muchos gracias
Chris Ammann
ch...@caltechnix.com.mx


<Scott Ripley> escribió en el mensaje
news:u4klnvglli45cn71k...@4ax.com...
> Chris,
>
> I had a need for multiple timers a while back and created an object to
> do it for me.
>
> Based on your request and the minimal responses you received I dug it
> up, cleaned it up and put a template around it.
>
> Attached you'll find a ZIP with 3 files.
> JSR.TPL, JSRTIMER.INC and JSRTIMER.CLW
> Put the TPL in your TEMPLATE directory and the other two in your
> LIBSRC directory. Register the template and you should then have
> available on any WINDOW procedure under the EXTENSIONs button a "setup
> multiple timers on a window" extension available. NOTE this is ABC
> only.
>
> I would recommend adding the extension with a few timers and then go
> to embeditor mode to see what it's done for you. You should be able
> to see the timer embeds at the bottom of your code.
>
> I don't have any documentation but will be glad to assist if you want
> to use it. Think of it as shareware.
>
> Scott Ripley

Steve Parker

unread,
Oct 1, 2003, 12:51:06 PM10/1/03
to
If you throw in a little readme, I'll put it up on CWICWEB so folks can
always get it.

Steve Parker

--------------------------------------------------
kb and download center at:
www.par2.com
KB: http://www.par2.com/cws/c5launch.dll/FAQS/THEFAQS.exe.0
--------------------------------------------------

"The improbable, we do. The impossible takes a bit longer."

0 new messages