User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 456,607 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,492 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser: Programming Forums
Views: 5189 | Replies: 23
Reply
Join Date: Nov 2007
Posts: 87
Reputation: squidd is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
squidd squidd is offline Offline
Junior Poster in Training

Re: How to make a popup window

  #21  
Dec 4th, 2007
Question for you Loyen...

Are you using this program you are trying to write to fill a a user screen with whatever you want it to say?

As in a joke of some sort?

Far be it from me to insinuate your intentions, but from what I have read about your project, it seems to me that you don't want the user to be able to stop a continuous flow of windows popping up with no way to stop it minus killing the thread that it runs on.

If that is the case, google is your answer and you shouldn't be asking for help here.

If i am wrong about that, then simply explain why you would want such a program with any way to stop it.

My apologies if I have misread your intentions, but I am willing to bet that others have thought what I have written.
Last edited by squidd : Dec 4th, 2007 at 12:41 am.
Reply With Quote  
Join Date: Nov 2007
Posts: 44
Reputation: Loyen is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Loyen Loyen is offline Offline
Light Poster

Re: How to make a popup window

  #22  
Dec 4th, 2007
No, sorry if it sounded like that.. I wanted just a little popup to come up when you press the exe, saying something, but I tried some things and got it to work, with the little command window in the background.. the code is this:

  1. PROGRAM popup;
  2. USES Windows, Messages;
  3. BEGIN
  4. MessageBox ( 0, 'You just got OWNED', ' OWNED', Mb_ok );
  5. PostQuitMessage ( 0 );
  6. Halt ( 1 );
  7. END.

It has a ok button, and it stops by pressing ENTER.. It was just something I wanted to try out. I'll try to make something more.
Reply With Quote  
Join Date: Oct 2007
Location: Cherry Hill, NJ
Posts: 1,878
Reputation: Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold 
Rep Power: 13
Solved Threads: 193
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: How to make a popup window

  #23  
Dec 4th, 2007
The example you posted on the last page compiled and worked fine for me using Delphi, but FPC choked... I'm not sure why yet. I've recently upgraded FPC and I think I might have goofed something. I still need to play with it more...
Reply With Quote  
Join Date: Nov 2007
Posts: 44
Reputation: Loyen is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Loyen Loyen is offline Offline
Light Poster

Re: How to make a popup window

  #24  
Jan 9th, 2008
Ok, I'm having fun with this thing. My teacher called me a hacker cause I'm going Porgramming A and popup windows will be introduced in Programming C course

Also this is the version of pascal I'm using:
http://www.bloodshed.net/devpascal.html


Now, I want to add a bitmap to my popup message and maybe try to change sounds.. I'm just goofing around to learn..
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Pascal and Delphi Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Pascal and Delphi Forum

All times are GMT -4. The time now is 7:10 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC