Kbase P149947: 4GL/ABL: How to remove ( disable ) the Open Sub Menu option from the File Menu Item of the Progress
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/18/2010 |
|
Status: Verified
GOAL:
4GL/ABL: How to remove ( disable ) the Open Sub Menu option from the File Menu Item of the Progress Procedure Editor?
GOAL:
How to delete ( suppress ) the Open Sub Menu option from the File Menu Item of the OpenEdge Procedure Editor?
GOAL:
How to modify the File Menu Item of the OpenEdge Procedure Editor?
FACT(s) (Environment):
Windows
Progress 9.x
OpenEdge 10.x
FIX:
The following steps remove the the Open Sub Menu option from the File Menu Item of the Progress / OpenEdge Procedure Editor and demonstrate the process of how to modify the to modify the File Menu Item of the Progress / OpenEdge 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\adecomm and DLC\src\adeedit into the above two directories respectively.
3. Start a Progress / OpenEdge client session with the -zn startup parameter:
prowin32.exe -zn
4. Open the file adeedit\dmenus.i in the Procedure Editor and comment the following lines and save the file:
/*
MENU-ITEM _Open LABEL "&Open... " ACCELERATOR {&OPEN-ACCEL}
TRIGGERS:
ON CHOOSE RUN OpenFile.
END.
*/
5. Open the file adeedit\dtrigs.i in the Procedure Editor and comment the following lines and save the file:
/*
ON CHOOSE OF MENU-ITEM _Open IN MENU mnu_File
RUN OpenFile.
*/
7. Compile and save the file adeedit\_proedit.p by executing the following 4GL/ABL statement from the Procedure Editor:
COMPILE adeedit\_proedit.p SAVE.
8. To incorporate this into your deployment, add the newly compiled _proedit.r into the DLC/tty/adeedit.pl using the following steps:
a) CD %DLC%\gui
b) mkdir adeedit
c) copy _proedit.r adeedit
d) copy adeedit.pl orig_adeedit.pl
e) prolib adeedit.pl -replace adeedit/_proedit.r
f) rmdir adeedit
9. Delete or rename the subdirectories created in step 1 above.