[Migrated content. Thread originally posted on 26 August 2008]
Hello again,I need some help with the Screen Designer of the AcuBench 7.2:
I like to perform a section/paragraph when someone hits the "X" on the window to exit the screen. I used the search function and found some helpful things like
In my config file I have quit-mode = to a -2 to get rid of the X.
or
msg-close is the event to look for, perhaps not all of your windows have an event procedure lloking for this, modify the programs so that they catche the msg-close event and moves an 'event-action-fail' to event-action if the msg-close happens.
Or consider executing the programs with the runtime -s option.
so it´s no problem for me to edit the source code directly but is there a way to change these settings via the screen designer?
In other words:
the screen designer creates a paragraph like the following to react on the "X".
The Problem is, that the "Acu-screen1-Msg-Close" paragraph is also created by the screen designer. I don´t know how to "access" the paragraph. Creating a Msg-Close Event does not help as you can see in the code below.
* an event occurs: (in this case "X" is clicked)
*
Acu-screen1-Event.
*
PERFORM Acu-screen1-Event-Extra *> created by acubench
*
EVALUATE Event-Type
WHEN Msg-Close
PERFORM screen1-Ev-Msg-Close *> my paragraph
END-EVALUATE
.
*
* created by AcuBench, I have no influence on that paragraph:
*
Acu-screen1-Event-Extra.
EVALUATE Event-Type
WHEN Msg-Close
PERFORM Acu-screen1-Msg-Close
END-EVALUATE
.
*
Acu-screen1-Msg-Close.
ACCEPT Quit-Mode-Flag FROM ENVIRONMENT "QUIT_MODE"
IF Quit-Mode-Flag = ZERO
PERFORM Acu-screen1-Exit
IF Exit-Pushed
PERFORM Acu-Exit-Rtn
ELSE
MOVE Event-Action-Fail TO Event-Action
END-IF
END-IF
.
*
screen1-Ev-Msg-Close.
* my code, not executed
.
I hope you understand my problem and I'm happy about your help.
Thanks a lot. :-)
Moritz



