Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 9th, 2010, 6:25 AM   #1
abdul.gafur
Trying to be a Real Coder
 
abdul.gafur's Avatar
 
Join Date: Feb 2010
Location: Bandung, Indonesia
Posts: 109
Rep Power: 1 abdul.gafur is on a distinguished road
Send a message via Yahoo to abdul.gafur
Re: Pop-up screen

I dunno what exactly it is.

php Syntax (Toggle Plain Text)
  1. ...
  2. letzte:longint;
  3. begin
  4. Timer1.Interval := 300000; //=300000 ms = 300 s = 5 m, you can change timer interval
  5. i:=1;
  6. Timer1.Enabled := True; //=call TForm1.Timer1Timer
  7. //get actual data and store it in "str"
  8. ...
  9.  
  10.  
  11. //This procedure will be execute every 5 minutes, so popup appears after 10X5 minutes
  12. procedure TForm1.Timer1Timer(Sender: TObject);
  13. begin
  14. if (i=10) then
  15. begin
  16. Timer1.Enabled:=false;
  17. i:=0;
  18. ShowMessage('Please get up and relax your eyes');
  19. end;
  20. Inc(i);
  21. end;
You can customize if (i=10) or Timer1.Interval := 300000;
__________________
just a drop of dew in the morning

if we facilitate other people's business in the world,
then our business will be facilitated in the world and the hereafter
abdul.gafur is online now   Reply With Quote
Old Feb 9th, 2010, 7:48 PM   #2
Raudhah
Newbie
 
Join Date: Jan 2010
Location: Singapore
Posts: 21
Rep Power: 0 Raudhah is on a distinguished road
Re: Pop-up screen

Quote:
Originally Posted by abdul.gafur View Post
I dunno what exactly it is.

php Syntax (Toggle Plain Text)
  1. ...
  2. letzte:longint;
  3. begin
  4. Timer1.Interval := 300000; //=300000 ms = 300 s = 5 m, you can change timer interval
  5. i:=1;
  6. Timer1.Enabled := True; //=call TForm1.Timer1Timer
  7. //get actual data and store it in "str"
  8. ...
  9.  
  10.  
  11. //This procedure will be execute every 5 minutes, so popup appears after 10X5 minutes
  12. procedure TForm1.Timer1Timer(Sender: TObject);
  13. begin
  14. if (i=10) then
  15. begin
  16. Timer1.Enabled:=false;
  17. i:=0;
  18. ShowMessage('Please get up and relax your eyes');
  19. end;
  20. Inc(i);
  21. end;
You can customize if (i=10) or Timer1.Interval := 300000;
That means the pop-up screen will appear after 50 minutes?
Raudhah is offline   Reply With Quote
Old Feb 10th, 2010, 5:15 AM   #3
abdul.gafur
Trying to be a Real Coder
 
abdul.gafur's Avatar
 
Join Date: Feb 2010
Location: Bandung, Indonesia
Posts: 109
Rep Power: 1 abdul.gafur is on a distinguished road
Send a message via Yahoo to abdul.gafur
Re: Pop-up screen

ya
__________________
just a drop of dew in the morning

if we facilitate other people's business in the world,
then our business will be facilitated in the world and the hereafter
abdul.gafur is online now   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
full screen help, html css privateD.lister HTML / XHTML / CSS 2 Apr 28th, 2008 4:32 PM
Clear screen with Java Eric the Red Java 9 Feb 22nd, 2006 11:28 PM
Getting size of user's screen elford Java 1 Jan 1st, 2006 5:09 AM
Senior Capstone-Spying Screen Saver Hounder Project Ideas 23 Dec 16th, 2005 8:00 PM
Print Screen? Sane C++ 5 Jul 27th, 2005 2:44 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:52 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC