![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jan 2010
Location: Singapore
Posts: 21
Rep Power: 0
![]() |
How to display pop-up screen? I want it to pop-up after the counter have count until 1800.
|
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Feb 2009
Posts: 275
Rep Power: 2
![]() |
Re: Pop-up screen
ShowMessage ()
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jan 2010
Location: Singapore
Posts: 21
Rep Power: 0
![]() |
Re: Pop-up screen
Hello. I already tried. I run the program and the pop-up screen appear but then I can't close the pop-up screen and the pop-up screen appear very fast.
I use this code: for i := 1 to 300000 do begin showMessage('Please get up and relax your eyes'); end; What should I do? |
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Feb 2009
Posts: 275
Rep Power: 2
![]() |
Re: Pop-up screen
teh pop up screen will show everytime it counts.
what are you trying to do? |
|
|
|
|
|
#5 |
|
Professional Programmer
Join Date: Feb 2009
Posts: 275
Rep Power: 2
![]() |
Re: Pop-up screen
Do you want to show the count of 1 to 30000 , how fast of a count do you want secs, mins,
does the message pop up after the count and do you need a ok button in the pop up? |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Jan 2010
Location: Singapore
Posts: 21
Rep Power: 0
![]() |
The OK button is already been displayed when the pop-up screen appeared. But now, i can't even click on the OK button to stop the pop-up.
|
|
|
|
|
|
#7 |
|
Professional Programmer
Join Date: Feb 2009
Posts: 275
Rep Power: 2
![]() |
Re: Pop-up screen
the ok button is stopping pop up but your makeing the pop up show 30000 times..
|
|
|
|
|
|
#8 |
|
Newbie
Join Date: Jan 2010
Location: Singapore
Posts: 21
Rep Power: 0
![]() |
Re: Pop-up screen
So I have to check the number to less than 300000?
|
|
|
|
|
|
#9 |
|
Newbie
Join Date: Jan 2010
Location: Singapore
Posts: 21
Rep Power: 0
![]() |
Re: Pop-up screen
I still can't figure it out what's wrong with the code. I tried running it again but the ok button still can't close the pop-up screen. Help me please anybody. I tried to use IF statement but there's errors. How??? Is there any other way other than using timer to run it?
|
|
|
|
|
|
#10 |
|
Programmer
Join Date: Jan 2010
Location: Australia
Posts: 56
Rep Power: 1
![]() |
Re: Pop-up screen
You should use a timer if you want a delay between popups, since, the loop will soak up all the processor time.
Note, there is only one main thread "process" for a Windows application, so if you code like this, other events will be locked. ie: OnPaint, etc. Sometimes you can use Application.ProcessMessages() if you a getting application lock, but yea, you should be using a timer, or multi threading. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| full screen help, html css | privateD.lister | HTML / XHTML / CSS | 2 | Apr 28th, 2008 3:32 PM |
| Clear screen with Java | Eric the Red | Java | 9 | Feb 22nd, 2006 10:28 PM |
| Getting size of user's screen | elford | Java | 1 | Jan 1st, 2006 4:09 AM |
| Senior Capstone-Spying Screen Saver | Hounder | Project Ideas | 23 | Dec 16th, 2005 7:00 PM |
| Print Screen? | Sane | C++ | 5 | Jul 27th, 2005 1:44 AM |