LHAPI Overview

LHAPI is like other Graphical User Interfaces (GUI's) in that it provides functions for directly manipulating the display, and windows (a.k.a. "objects") that are used to interact with the user. A typical LHAPI program will create a main window, and then based on interaction from the user, create dialogs. These dialogs will consist of controls that the user will manipulate; the program will then use that input accordingly. LHAPI is designed to operate on a limited-space machine, so unlike other GUI's, the application is held responsible for more of the work in getting a window up and running.

Although not strictly object-oriented, does LHAPI does communicate between windows with messages. These messages are used to tell, for example, an edit window to accept a keystroke, or for a list box to redraw itself, etc. Like OOP, LHAPI objects can be "reused" by subclassing the object and adding/removing functionality. An example of this might be creating a date-only edit field by subclassing the edit field, and adding the ability to parse dates.

An application under LHAPI is event driven--it operates on messages generated by the user. These messages from the most part come from the user (which come in turn from the System Manager). Thus, a LHAPI application consists of three primary parts:

LHAPI Initialization

The LHAPI Event Loop

Quitting a LHAPI Application

LHAPI Window Handlers

LHAPI Window Data

LHAPI Messaging

Using the FileOpenDialogBox class

Other LHAPI Details

What is CAP?