Windows
Nowadays, working with windowed applications should be no problem for most Windowsand Linuxusers. Nevertheless, the following section describes how the windows work in order to derive the most benefit from the Free Pascal IDE.
Window basics
A common IDE window is displayed in figure [fig:idewin].
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:
At the upper left corner of the window, a close icon is shown. When clicked, the window will be closed. It can also be closed by pressing or by selecting the menu item . All open windows can be closed by selecting the menu item .
In the middle, the title of the window is displayed.
Almost at the upper right corner, a number is visible. This number identifies the editor window, and pressing will jump to this window. Only the first 9 windows will get such a number.
At the upper right corner, a small green arrow is visible. Clicking this arrow zooms the window so it covers the whole desktop. Clicking this arrow on a zoomed window will restore the old size of the window. Pressing the key has the same effect as clicking that arrow. The same effect can be achieved with the menu item . Windows and dialogs which aren’t resizeable can’t be zoomed, either.
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-colored 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 The IDE.
Sizing and moving windows
A window can be moved and sized using the mouse and the keyboard.
To move a window:
Using the mouse, click on the title bar and drag the window with the mouse.
Using the keyboard, go into the size/move mode by pressing or selecting the menu item . The window frame will change to green to indicate that the IDE is in size/move mode. Now the cursor keys can be used to move the window. Press to leave the size/move mode. In this case, the window will keep its size and position. Alternatively, pressing will restore the old position.
To resize a window:
Using the mouse, click on the lower right corner of the window and drag it.
Using the keyboard, go into the size/move mode by pressing or selecting the menu item . The window frame will change to green to indicate that the IDE is in size/move mode. Now hold down the SHIFT key and press one of the cursor keys in order to resize the window. Press to leave the size/move mode. Pressing will restore the old size.
Not all windows can be resized. This applies, for example, to dialog windows (section The IDE).
A window can also be hidden. To hide a window, the key combination can be used, or the 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:
Using the mouse, activate a window by clicking on it.
Using the keyboard, pressing will step through all open windows. To activate the previously activated window, can be used.
The menu item can be used to activate the next window in the list of windows, while will select the previous window.
If the window has a number in the upper right corner, it can be activated by pressing .
Pressing will pop up a dialog with all available windows which allows a quick activation of windows which don’t have a number.
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 and can be used:
- Tile
-
will divide the whole desktop space evenly between all resizable windows.
- Cascade
-
puts all the windows in a cascaded arrangement.
In very rare cases the screen of the IDE may become mixed up. In this case the whole IDE screen can be refreshed by selecting the menu item .
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 behavior is called modal. To activate another window, the modal window or dialog must be closed first.
A typical dialog window is shown in figure [fig:idedlg].
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
