contents.gifindex.gifprev1.gifnext1.gif

1.1 Overview of User Interface Features

In addition to the standard display handling included in ANSI-85 COBOL, ACUCOBOL-GT offers a comprehensive set of extensions for programming and managing Graphical User Interfaces (GUIs). With these extensions, an ACUCOBOL-GT developer can add a full-featured, native GUI to an existing program entirely in COBOL. The purpose of these extensions is to:

gt490000.gif allow developers to create a fully graphical program in COBOL for use on systems such as Microsoft Windows.

gt490000.gif allow developers to use a mix of graphical and character-based interfaces in one program. Graphical features can be added to an existing program without the need to rewrite the entire user interface.

gt490000.gif allow programmers to develop graphical interface specifications that are portable to a variety of host systems.

gt490000.gif support graphical features in a way that is natural for COBOL.

gt490000.gif mimic existing COBOL screen syntax as closely as possible to simplify the task of reworking a character-based program into a graphical program.

gt490000.gif avoid the need to do event loop programming that is common for graphical systems, but foreign to most COBOL programs.

gt490000.gif make it easy to add new features in the future.

ACUCOBOL-GT supports the emulation of graphical controls and windows on character-based systems. This emulation allows you to more easily write a single program that will run on both character and graphical systems. ACUCOBOL-GT supports the emulation of floating windows and the following control types: label, entry field, push button, radio button, frame, check box, list box (including infinite capacity list box), and combo box.

You can also use ACUCOBOL-GT's traditional text-oriented mechanisms for creating your user interface, such as the textual forms of the ACCEPT and DISPLAY verbs, and Format 1 of the Screen Section. In addition, you can use the Screen Section extensions to define and process both character-based and graphical user interface screens.


Note that ACUCOBOL-GT provides full object code compatibility among all supported platforms.

Generally, ACUCOBOL-GT GUI supports include:

gt490000.gif syntax extensions for creating native floating windows, toolbars, and controls (such as buttons, entry fields, and labels)

gt490000.gif the ability to create and manage menu bars with pull-down submenus

gt490000.gif configuration variables for customizing windows, importing icons, and mapping colors

gt490000.gif many host specific features such as message boxes and context-sensitive help

Specifically, ACUCOBOL-GT's GUI programming supports include:

gt490000.gif native floating (moveable) windows, including:

      gt490001.gif modal and modeless window types

gt490001.gif default and custom window size and position

gt490001.gif dynamically resizeable windows

gt490001.gif configurable borders

gt490001.gif programmable title bar

gt490001.gif optional system menu

gt490000.gif GUI controls, including:

      gt490001.gif labels

gt490001.gif entry fields

gt490001.gif standard and infinite capacity list boxes

gt490001.gif combo boxes

gt490001.gif push buttons

gt490001.gif radio buttons

gt490001.gif check boxes

gt490001.gif frames

gt490001.gif bars*

gt490001.gif scroll bars*

gt490001.gif tabs* (32-bit only)

gt490001.gif bitmaps*

gt490001.gif grids*

gt490000.gif menu bars and submenus

gt490000.gif display of bitmaps and bitmap buttons*

gt490000.gif toolbars*

gt490000.gif access to the native message box facility

gt490000.gif access to the native file open and file save-as dialog boxes*

gt490000.gif access to the native help facility and support for context sensitive help

gt490000.gif specialized mouse handling

gt490000.gif font selection and handling

gt490000.gif custom colors

gt490000.gif the ability to play ".WAV" audio files on MS Windows systems with sound capabilities


Note that items marked with an "*" are not supported in text-mode environments.

ACUCOBOL-GT runtime supports include:

gt490000.gif full object code compatibility

gt490000.gif the creation and runtime management of native floating windows and graphical controls on Microsoft Windows 3.1, Windows 95, and Windows NT

gt490000.gif automatic text-mode emulation of floating windows and most graphical controls, except bars, scroll bars, tabs, animated bitmaps, bitmap buttons, and toolbars

gt490000.gif automatic mouse support

gt490000.gif automatic menu bar handling

gt490000.gif extensive color mapping facilities

gt490000.gif access to the Windows print spooler

gt490000.gif automatic multi-tasking support

gt490000.gif network compatibility

gt490000.gif access to all memory available under Windows

Floating windows and graphical controls

ACUCOBOL-GT supports a class of windows named floating windows. When run under a graphical environment, floating windows correspond to the graphical windows that are native to the host environment. Floating windows pop up over their parent window and can be repositioned by the user with the mouse or system menu (if present). Floating windows are fully described in Chapter 2, "Floating Windows."

ACUCOBOL-GT also supports the creation, display, and manipulation of graphical controls. Graphical controls include push buttons, radio buttons, check boxes, entry fields, list boxes, combination boxes, frames, labels, bars, scroll bars, tabs, and bitmaps. Toolbars can also be created and attached to floating windows. A toolbar can host any type of control, but is usually populated with push buttons, check boxes, and radio buttons. To simplify the programming of graphical controls, ACUCOBOL-GT provides a consistent method for their specification and handling. For a complete description of graphical controls, see Chapter 3, "Graphical Controls."

Automatic GUI runtime support

As in past versions of ACUCOBOL-GT, certain GUI features are provided automatically by the runtime. To take advantage of these features, you don't have to change your COBOL code, and you don't have to recompile your program. You simply use the object code generated with your ACUCOBOL-GT compiler, and execute it with a Version 3.2 runtime for Windows 3.1, Windows 95, or Windows NT. When you do this your program automatically gains:

gt490000.gif a native, moveable, main application window.

gt490000.gif basic mouse support. Users can point and click to move the cursor, and can highlight a string of characters and replace the string by typing a new one.

gt490000.gif customizable colors, titles, window sizes, window placement, and program icons (tailored with runtime configuration variables).

gt490000.gif access to the system's print spooler, so that several files may be queued for printing.

gt490000.gif the ability to run more than one application at the same time.