Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
how to make a window close down when finished with.?? Posted by Jabon102 on 6 Mar 2003 at 9:45 AM
need a source code so that once i have finished using the window and it says inactive, the window shuts down automaticlly.
any ideas?
cheers....

Report
Re: how to make a window close down when finished with.?? Posted by DexterMagnific on 7 Mar 2003 at 5:14 AM
You're running your program in a DOS box i suppose ...

Well, you cannot make it closing when it terminates by some code.
These things are handled by Window$. To close automatically your window when your program finishes, do the folloqing :

do to the directory where your compiled program (with a .EXE extension) is.
Looki at the .PIF file associated with. (eg if your program is MyProg.PAS, go to the dir where MyProg.EXE is located ans serch for MyProg.PIF).
Select it, and open contextual menu (with right mouse button) ans select "Properties". look at the options and check "Close after program finishes" or something like that.

Hope it helps.
DexterMagnigfic at yahoo.fr

Report
Re: how to make a window close down when finished with.?? Posted by Phat Nat on 7 Mar 2003 at 3:33 PM
: You're running your program in a DOS box i suppose ...
:
: Well, you cannot make it closing when it terminates by some code.
: These things are handled by Window$. To close automatically your window when your program finishes, do the folloqing :
:
: do to the directory where your compiled program (with a .EXE extension) is.
: Looki at the .PIF file associated with. (eg if your program is MyProg.PAS, go to the dir where MyProg.EXE is located ans serch for MyProg.PIF).
: Select it, and open contextual menu (with right mouse button) ans select "Properties". look at the options and check "Close after program finishes" or something like that.
:
: Hope it helps.
: DexterMagnigfic at yahoo.fr

Even easier, is to run the program, then while it is running, hit ALT-SPACE and select PROPERTIES. Select the CLOSE ON EXIT check box and hit OK.

Phat Nat

Report
Re: how to make a window close down when finished with.?? Posted by Jabon102 on 8 Mar 2003 at 3:05 AM
thanks for ya help, my mate said there was a canclose statement which did it and i was just wondering if u knew how to do it any ideas?
cheers



: : You're running your program in a DOS box i suppose ...
: :
: : Well, you cannot make it closing when it terminates by some code.
: : These things are handled by Window$. To close automatically your window when your program finishes, do the folloqing :
: :
: : do to the directory where your compiled program (with a .EXE extension) is.
: : Looki at the .PIF file associated with. (eg if your program is MyProg.PAS, go to the dir where MyProg.EXE is located ans serch for MyProg.PIF).
: : Select it, and open contextual menu (with right mouse button) ans select "Properties". look at the options and check "Close after program finishes" or something like that.
: :
: : Hope it helps.
: : DexterMagnigfic at yahoo.fr
:
: Even easier, is to run the program, then while it is running, hit ALT-SPACE and select PROPERTIES. Select the CLOSE ON EXIT check box and hit OK.
:
: Phat Nat
:
:

Report
Re: how to make a window close down when finished with.?? Posted by johnpilula on 12 Mar 2003 at 4:21 AM
: need a source code so that once i have finished using the window and it says inactive, the window shuts down automaticlly.
: any ideas?
: cheers....
:
:
ITS SIMPLE!
EG.
USES WINCRT;
BEGIN
WRITE('HELO');
DONEWINCRT;
END.

THE 'DONEWINCRT' WILL CLOSE THE WINDOW




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.