Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How to run timer just a several cycles?
How to run timer just a several cycles? [message #2654] Thu, 20 April 2006 10:05 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
How to run timer just a several cycles?

I can't find any blinking effects, so I want to create them myself with a timer. Any hints?
Re: How to run timer just a several cycles? [message #2655 is a reply to message #2654] Thu, 20 April 2006 10:25 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Ok, I've found KillTimeCallback(int id). Static int inside my function does the job but is there a ready-made function?

[Updated on: Thu, 20 April 2006 10:26]

Report message to a moderator

Re: How to run timer just a several cycles? [message #2661 is a reply to message #2655] Thu, 20 April 2006 13:18 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
fudadmin wrote on Thu, 20 April 2006 04:25

Ok, I've found KillTimeCallback(int id). Static int inside my function does the job but is there a ready-made function?


Why static?

Mirek
Re: How to run timer just a several cycles? [message #2671 is a reply to message #2661] Thu, 20 April 2006 17:03 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
luzr wrote on Thu, 20 April 2006 12:18

fudadmin wrote on Thu, 20 April 2006 04:25

Ok, I've found KillTimeCallback(int id). Static int inside my function does the job but is there a ready-made function?


Why static?

Mirek


Too many hours without sleep in front of computer... Smile
Ok, is there a ready-made func?
Re: How to run timer just a several cycles? [message #2672 is a reply to message #2671] Thu, 20 April 2006 18:01 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
fudadmin wrote on Thu, 20 April 2006 11:03

luzr wrote on Thu, 20 April 2006 12:18

fudadmin wrote on Thu, 20 April 2006 04:25

Ok, I've found KillTimeCallback(int id). Static int inside my function does the job but is there a ready-made function?


Why static?

Mirek


Too many hours without sleep in front of computer... Smile
Ok, is there a ready-made func?



No, mostly because I have never met a need for.

What scenario needs this?

Mirek
Re: How to run timer just a several cycles? [message #2675 is a reply to message #2672] Thu, 20 April 2006 20:01 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
luzr wrote on Thu, 20 April 2006 17:01

fudadmin wrote on Thu, 20 April 2006 11:03

luzr wrote on Thu, 20 April 2006 12:18



Why static?

Mirek


Too many hours without sleep in front of computer... Smile
Ok, is there a ready-made func?



No, mostly because I have never met a need for.

What scenario needs this?

Mirek


Controlled animation! Have you got other ideas how to implement that?
Re: How to run timer just a several cycles? [message #2677 is a reply to message #2675] Thu, 20 April 2006 20:30 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
No, actually, I think your approach is a good idea.

Maybe it could be encapsulated by some nice helper class.

struct Animator {
int phase;
void Start(int phases, Callback anim);
};

Mirek
Previous Topic: Events outside TopWindow
Next Topic: ColumnList question (move and delete item)
Goto Forum:
  


Current Time: Sat May 04 07:57:20 CEST 2024

Total time taken to generate the page: 0.02289 seconds