Typical usage of Andys Editor

As an example, I will show the source to the GBMV2.EXE executable which is a part of the Generalised Bitmap Module (GBM). In fact, all of GBM is folded, as is almost every project I have ever written. This is obtainable via the links on my home page.

It is usual to have a top file for each project. This file typically has some info about the project and annotated virtual fold links to the source files which make up the project. Accordingly, I have a file gbmv2.top, which looks like this when inside the editor.

If you move down to the gbmv2.c virtual fold, and enter it (using F3 or ^L ^I in the default key bindings), then the source file looks like this.

Notice that each function, or group of functions is in its own fold. Moving down to the BitmapWndProc fold, and entering this.

This OS/2 Presentation Manager window procedure is clearly just a message processing switch statement. See how the use of folds makes the structure so much easier to comprehend at a glance. Each WM_message is handled in its own little fold. This can be seen by moving onto the WM_PAINT fold and entering this.

This clearly demonstrates the point that you need not fold just functions, or groups of functions, and that statements (or parts thereof) can benefit from folding.

Screen shots taken of AE for OS/2 running on OS/2 Warp 3.0.