Kbase P57096: 4GL/ABL: How to remove the OS SHELL Sub Menu option in the Tools Menu Item of the Progress character
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  18/01/2010 |
|
Status: Verified
GOAL:
4GL/ABL: How to remove the OS SHELL Sub Menu option from the Tools Menu Item of the Progress character client Procedure Editor?
GOAL:
How to disable or suppress the OS SHELL Sub Menu option from the Tools Menu Item of the Progress character client Procedure Editor?
GOAL:
How to customize or modify the Tools Menu Item of the Progress character client Procedure Editor?
FACT(s) (Environment):
UNIX
Progress 8.x
Progress 9.x
OpenEdge 10.x
FIX:
The following steps remove the OS SHELL Sub Menu option from the Tools Menu Item of the Progress character client Procedure Editor:
1. Create a subdirectory of your working directory named adecomm and another subdirectory named adeedit.
2. Copy the source files from DLC\src\adeedit and DLC\src\adecomm into the above two directories respectively.
3. All progress clients started in this solution MUST use the -zn startup parameter. This client startup parameter is required to compile files whose names start with the underscore character "_". For example:
prowin32.exe -zn or _progres -zn
4. Comment the following lines (141-143) of the file adecomm\toolmenu.i:
/* &IF "{&WINDOW-SYSTEM}" = "TTY" &THEN
MENU-ITEM mnu_OS_Shell LABEL "&OS Shell"
&ENDIF */
5. Comment the following lines(232-246) of the file adecomm\toolrun.i:
/*------------------------------ OS SHELL -------------------------------*/
/*
&IF "{&WINDOW-SYSTEM}" = "TTY" &THEN
ON CHOOSE OF MENU-ITEM mnu_OS_Shell IN MENU mnu_Tools
DO:
DO ON STOP UNDO, RETRY:
IF NOT RETRY
THEN DO:
RUN disable_widgets.
OS-COMMAND.
END.
RUN enable_widgets.
END.
END.
&ENDIF
*/
6. Start a _progres character client session using the -zn startup parameter. If you do not start the session with the -zn startup parameter you will get the errors:
** The first character of _ADEIconDir must be alphabetic. (257)
** ./adecomm/icondir.i Could not understand line 1. (196)
7. Compile and save the file adeedit\_proedit.p in this character session by executing the 4GL statement:
COMPILE adeedit\_proedit.p SAVE.
The resulting _proedit.r would have no OS SHELL sub menu item in its Tools Menu item.
8. To incorporate this into a deployment, include the newly compiled _proedit.r into the $DLC/tty/adeedit.pl using the following steps:
On UNIX:
a) cd $DLC/tty
b) mkdir adeedit
c) cp _proedit.r adeedit
d) cp adeedit.pl orig_adeedit.pl
e) prolib adeedit.pl -replace adeedit/_proedit.r
f) Delete or rename the subdirectories created in step 1 above.
On Windows:
a) cd %DLC%\tty
b) mkdir adeedit
c) copy _proedit.r adeedit
d) copy adeedit.pl orig_adeedit.pl
e) prolib adeedit.pl -replace adeedit/_proedit.r
f) Delete or rename the subdirectories created in step 1 above.