Download AccessWare User Guide - John J. Jacobs
Transcript
AccessWare Programmatic Interface AccessWare Programming Examples QBUTTON XPOS,235,YPOS,210,WIDTH,100,HEIGHT,30,DEPTH,4,LABEL,PRINT, -> ACTION,1020,QEND # =========================================================== QATTREND The following figure shows the panel created by the resource file. Figure 6-4 Example of a List and Print Panel The same main.c procedure as defined in the previous example can be used. However, the aw_user_exit.c code needs to define actions 1010 and 1020 from the resource file. The aw_user_exit.c file now contains the following: /************************************************* ** File: aw_user_exit() ** ** Purpose : Example for AccessWare application ** **************************************************/ #include <stdio.h> #include ”access.h” extern char *aw_get_item_value(), *aw_get_list_line(); extern int aw_set_item_value(); aw_user_exit( reg, user_action, value, mouse ) 6-24 AccessWare User Guide