6.3 Windows

Nowadays, working with windowed applications should be no problem for most WINDOWS and LINUX users. Nevertheless, the following section describes how the windows work in the Free Pascal IDE, to allow efficient work with it.

Window basics

A common IDE window is displayed in figure (6.2).



Figure 6.2: A common IDE window

PIC


The window is surrounded by a so-called frame, the white double line around the window.

At the top of the window 4 things are displayed:

The right edge and bottom edges of a window contain scrollbars. They can be used to scroll the window contents with the mouse. The arrows at the ends of the scrollbars can be clicked to scroll the contents line by line. Clicking on the dotted area between the arrows and the cyan-coloured rectangle will scroll the window’s content page by page. By dragging the rectangle the content can be scrolled continuously.

The star and the numbers in the lower left corner of the window display information about the contents of the window. They are explained in the section about the editor, see section 6.5, page 133.

Sizing and moving windows

A window can be moved and sized using the mouse and the keyboard: To move a window:

To resize a window:

Not all windows can be resized. This applies, for example, to dialog windows (section 6.3, page 120).

A window can also be hidden. To hide a window, the CTRL-F6 key combination can be used, or the ”Window--Hide” menu may be selected. To restore a Hidden window, it is necessary to select it from the window list. More information about the window list can be found in the next section.

Working with multiple windows

When working with larger projects, it is likely that multiple windows will appear on the desktop. However, only one of these windows will be the active window, all other windows will be inactive.

An inactive window is identified by a grey frame. An inactive window can be made active in one of several ways:

The windows can be ordered and placed on the IDE desktop by zooming and resizing them with the mouse or keyboard. This is a time-consuming task, and particularly difficult with the keyboard. Instead, the menu items ”Window--Tile” and ”Window--Cascade” can be used:

Tile
will divide whole desktop space evenly between all resizable windows.
Cascade
puts all windows in a cascaded position.

In very rare cases the screen of the IDE may be mixed up. In this case the whole IDE screen can be refreshed by selecting the menu item ”Window--Refresh display”.

Dialog windows

In many cases the IDE displays a dialog window to get user input. The main difference to normal windows is that other windows cannot be activated while a dialog is active. Also the menu is not accessible while in a dialog. This behaviour is called modal. To activate another window, the modal window or dialog must be closed first.

A typical dialog window is shown in figure (6.3).



Figure 6.3: A typical dialog window

PIC