Sign in Join
Wiki copytemporary

Main menu

Deutsch · English · Español · Français · Italiano · Magyar · Nederlands · Português · Shqip · Slovenčina · Suomi · Македонски · Русский · 中文(中国) · 中文(台灣) · 日本語

The Lazarus main menu contains the following entries:
{| class="wikitable" |- | File     Edit     Search     View     Source     Project     Run    Package     Tools     Window     Help |} As usual, the options can be selected either by placing the mouse cursor over the menu option and clicking the left mouse button, or by typing Alt+F on the keyboard (provided the main menu window has focus: if it has not, hit Tab repeatedly to cycle focus through the various windows until the desired window has its title bar highlighted in colour). To reach the menu bar on macOS, the keyboard shortcut is Ctrl+F2.

File

Edit

Search

View

Controls the display of various windows and panels on the screen.

Source

Project

Run

One very important use of this sub-menu is to activate a terminal window in which conventional Pascal console input/output is displayed. If you are developing a console-mode Pascal program (ie one that doesn't use the Graphical User Interface with its forms, buttons and boxes) then you should check the box for "Use launching application". The first time you do this on Linux and try the Compile/Run sequence, you will probably get a rude message to say

text
"xterm: Can't execvp /usr/share/lazarus//tools/runwait.sh: Permission denied".

If this happens, you need to change the permissions on the appropriate file (for example using chmod +x filename; you might have to do this as root. After this, each time you launch you program, a console box will appear and all your text i/o (readln, writeln etc) will appear in it.

After your program has finished execution, a message "Press enter" appears on the screen. Thus any output your program generated will remain on the screen until you have had a chance to read it; after you press 'enter' the console window closes.

On Linux, if the above message "xterm: Can't execvp /usr/share/lazarus//tools/runwait.sh: Permission denied" does not appear after checking the box for "Use launching application", type /usr/bin/xterm $(TargetCmdLine) and check Use launching application (xterm is installed on almost all Linux systems).

See the separate tutorial on Console Mode Pascal programming.

These last three options enable you to open (and maintain) a test project. Use File -> Open to open an .lpr file, pressing cancel on the next dialog to open this file as "normal source" file.

Package

Tools

See also: Lazarus For Delphi Users and Code Conversion Guide.

Window

Contains a list of the currently opened files and the available windows such as Source Editor, Object Inspector and Project Inspector. Clicking on the name of one of the windows brings it to the foreground and gives it focus.

Help

At present this has four selections:

Help can be configured from Tools > Options > Help > Help Options.


From the Free Pascal wiki, page "Main menu", as it stood on 2023-06-26 after a change by Martin, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 3, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.