Download AccessWare User Guide - John J. Jacobs
Transcript
AccessWare Programmatic Interface
Structure of the Application Code
{
/* Action QBUTTON, QID x, QWINDOW, win_signon */
case
1000
{
/* Get other item values */
/* Perform X/Exit action */
}
/* Action QBUTTON item, QID go, QWINDOW, win_signon */
case
1010
{
/* Get other item values */
/* Perform the GO action */
}
...
}
The application programmer must write, compile, and link the aw_user_exit
procedure in this form to control the application.
Action numbers in the range 0 - 500 are reserved for use by AccessWare.
Consequently, all action numbers specified by the application programmer must be
greater than 500.
To assist with Modular programming, you can create a number of user_exit
procedures that AccessWare can call. The procedure is explained later in this
chapter.
Please note: Allocate different ranges of numbers to different modules in
your application. Also, allocate action numbers in multiples of say ten, so that
other actions can be added later in the same ranges as related actions.
The procedure call to aw_user_exit is as follows:
aw_user_exit (region, user_action, value, mouse)
The arguments have the following types and descriptions:
Type
Description
region integer
an identifier of the item that called the action.
user_action integer
the ACTION number from the resource file.
value integer
the value associated with the VALUE attribute of the item
invoking the action.
AccessWare User Guide
6-5