GUI ScreenIO for Windows |
This sample application only has one panel in set one, a base panel. It is a simple menu that lets you choose which other working-set you want to open.
When you press a button or select a menu option to open a different set, this program just returns the number of the set that's been requested in the argument ACTIVE-SET and then returns to the main program.
When the user changes from this set to a different one (that was opened previously), panel PSET1 receives the event PSET1-EVENT-INACTIVATED. PSET1-ACTIVATED-PANEL-NAME will contain the name of the panel that is to be activated (the one that the user clicked), and PSET1-ACTIVATED-WORKING-SET contains the working-set of the panel which is to become active.
This routine simply moves the content of these fields to ACTIVE-PANEL and ACTIVE-SET, respectively, and then returns to the main program.
Again, the main program will examines ACTIVE-SET to determine which subroutine needs to be called to activate the desired panel.
Because the panel in this program is a base panel, it will receive PSET1-EVENT-CLOSE-AND-STOP if the user clicks the X box in the upper-right corner of the panel, indicating the user wants to terminate the application.
The correct response is simply to set END-OF-JOB to TRUE, and return to the main program.
IDENTIFICATION DIVISION.
|
© 2000-2019 Norcom, all rights reserved |