Home - RAD C++ GUI Lib 1.2.2 Documentation
Published on March 09, 2007 [03:04:02 PM]



Browse class : _window

Function : bool setTimer(String timerName[,unsigned long])


Description

sets named timer for a specified number of milliseconds, that notifies directly in the procedure of the object after specified number of milliseconds have passed, and repeats doing this until removed.

MORE
You may pass direct value in terms of milliseconds e.g. 1000 is SECONDS
You can use 2 * MINUTES which is 2 minutes, or 2 * HOURS which is repectively 2 hours
where SECONDS, MINUTES, HOURS are the predefined constants.



Return

true on success and fase otherwise


Remarks

e.g.

//set timer for 1 second  = 1000 milliseconds
form1.setTimer("timer1", 1000);

//in procedure of form when timer named 'timer1' notifies 
ON_TIMER_NOTIFICATION("timer1") { 
  ....
}





Visit www.radcpp.com for more help and updates. Documentation created using FlaX.Doc