[Pascal Language Screen management

Last update on August 16, 2009 02:50 PM by jak58
Published by netty5

[Pascal Language]Managing screens under Pascal








Under Pascal Language screen management is done through functions and procedures of the predefined WinCrt unit. That is why in each program, you have to use the WinCrt unit (CRT with Free Pascal)

If by default, the title of a window is the name of the source file starting with its path, to modify it, you must put the predefined variable (Table of 80 characters) into the WinCrt unit:

WindowTitle using the procedure of the Strings unit: StrCopy.

And to close the window after the execution of the program: DoneWinCrt.

To move the cursor, use the GotoXY procedure:

e.g:
Program Management;
Uses WinCrt, Strings;
Begin
     StrCopy(WindowTitle, 'STOCK MANAGEMENT');
     GotoXY (20, 10); (* row 10 column 20 *)
     Write ('*');
     Readln;
     DoneWinCrt;
End.
 
Best answers for « [Pascal Language Screen management » in :
[Pascal language] Recursion within a Bubble Sort Show [Pascal language] Recursion within a Bubble Sort Pascal is a stable, efficient and block-structured programming language. The "type" of variables used in Pascal language is made up of its semantic nature and its range of values, and can...
[Pascal language] Recursion within a Shell Sort Show [Pascal language] Recursion within a Shell Sort Recursion, in the computing or mathematical terms, is a method of defining functions in which the function being defined is applied within its own designation. The term is also used more...
[Pascal Language] Links for resources and compilers Show [Pascal Language] Links for resources and compilers Here are some links giving you free access to some resources and compilers for Pascal. FreePascal http://www.freepascal.org/ GNU-Pascal http://www2.gnu-pascal.de/gpc/h...
Print Screen (Windows, Mac OS X and Unix/Linux) ShowHow to make a Print Screen (Windows, Mac OS X and Unix/Linux) What is a Print Screen? How to make a Print Screen (Windows) How to make a Print Screen (Mac OS X) How to make a Print Screen (Unix/Linux) Screen Capture Softwares What is a...
BLUE SCREEN - ATI2DVAG ShowBLUE SCREEN - ATI2DVAG 1. Update drivers 2. Disable fast write When launching a game, you receive an error message on blue screen telling you that windows has detected an error caused by ATI2DVAG. 1. Update drivers This problem...
Displaying video from a PC on a television screen ShowDisplaying video from a PC on a television screen TV output S-Video output Configuration under Windows FAQ You can display the output from the computer on a television (or even the sound on an amplifier). But that implies that the...
Download Islamic Calligraphy screensaver ShowThe writing or the calligraphy in the Islamic language is whole art. It absolutely differs from other calligraphy in the world. To understand better this beauty and all delicacy of this writing, it is necessary to see it and to consider it. Islamic...
Computer screen or monitor ShowIntroduction to computer monitors A monitor (or screen) is a computer display unit. There are generally said to be two families of monitors: Cathode-ray tube monitors (or CRT for short), which are used with most desktop computers. They are...
Programming languages ShowProgramming language A "programming language" is a language designed to describe a set of consecutive actions to be executed by a computer. A programming language is therefore a practical way for us (humans) to give instructions to a...
Characteristics of programming languages ShowThere are many programming languages, each corresponding to specific needs (formula calculus, character string processing, real-time, etc.) with each having specific characteristics and functionalities. Therefore, the choice of programming language...