Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Jan 21st, 2010, 2:35 AM   #1
Raudhah
Newbie
 
Join Date: Jan 2010
Location: Singapore
Posts: 21
Rep Power: 0 Raudhah is on a distinguished road
Exclamation Pop-up screen

How to display pop-up screen? I want it to pop-up after the counter have count until 1800.
Raudhah is offline   Reply With Quote
Old Jan 21st, 2010, 9:57 PM   #2
squills
Professional Programmer
 
squills's Avatar
 
Join Date: Feb 2009
Posts: 275
Rep Power: 2 squills is on a distinguished road
Re: Pop-up screen

ShowMessage ()
__________________
Best use ever for C++...
http://www.planet-source-code.com/Up...3165921697.jpg
squills is offline   Reply With Quote
Old Jan 21st, 2010, 10:54 PM   #3
Raudhah
Newbie
 
Join Date: Jan 2010
Location: Singapore
Posts: 21
Rep Power: 0 Raudhah is on a distinguished road
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?
Raudhah is offline   Reply With Quote
Old Jan 21st, 2010, 11:07 PM   #4
squills
Professional Programmer
 
squills's Avatar
 
Join Date: Feb 2009
Posts: 275
Rep Power: 2 squills is on a distinguished road
Re: Pop-up screen

teh pop up screen will show everytime it counts.

what are you trying to do?
__________________
Best use ever for C++...
http://www.planet-source-code.com/Up...3165921697.jpg
squills is offline   Reply With Quote
Old Jan 21st, 2010, 11:15 PM   #5
squills
Professional Programmer
 
squills's Avatar
 
Join Date: Feb 2009
Posts: 275
Rep Power: 2 squills is on a distinguished road
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?
__________________
Best use ever for C++...
http://www.planet-source-code.com/Up...3165921697.jpg
squills is offline   Reply With Quote
Old Jan 22nd, 2010, 12:36 AM   #6
Raudhah
Newbie
 
Join Date: Jan 2010
Location: Singapore
Posts: 21
Rep Power: 0 Raudhah is on a distinguished road
Exclamation Re: Pop-up screen

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.
Raudhah is offline   Reply With Quote
Old Jan 22nd, 2010, 12:59 AM   #7
squills
Professional Programmer
 
squills's Avatar
 
Join Date: Feb 2009
Posts: 275
Rep Power: 2 squills is on a distinguished road
Re: Pop-up screen

the ok button is stopping pop up but your makeing the pop up show 30000 times..
__________________
Best use ever for C++...
http://www.planet-source-code.com/Up...3165921697.jpg
squills is offline   Reply With Quote
Old Jan 22nd, 2010, 1:26 AM   #8
Raudhah
Newbie
 
Join Date: Jan 2010
Location: Singapore
Posts: 21
Rep Power: 0 Raudhah is on a distinguished road
Re: Pop-up screen

So I have to check the number to less than 300000?
Raudhah is offline   Reply With Quote
Old Jan 24th, 2010, 8:06 PM   #9
Raudhah
Newbie
 
Join Date: Jan 2010
Location: Singapore
Posts: 21
Rep Power: 0 Raudhah is on a distinguished road
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?
Raudhah is offline   Reply With Quote
Old Jan 31st, 2010, 10:00 AM   #10
alienkinetics
Programmer
 
alienkinetics's Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 56
Rep Power: 1 alienkinetics is on a distinguished road
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.
alienkinetics is offline   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 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




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

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