Kbase P141519: How can I disable copy-paste in any field in a 4GL program?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/18/2009 |
|
Status: Unverified
GOAL:
Disable ctrl-c in a 4GL program
GOAL:
Disable right-click pop-menu in a 4GL program
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.x
OpenEdge Category: Language (4GL/ABL)
FIX:
Create a trigger for each field that needs to be disable and add RETURN NO-APPLY to the code.
A trigger must be created for the Three- Buttons Mouse Events on Right-Mouse-Click and Right-Mouse-Dblclick events. Also a "Keyboard event" has to be created for CTRL-C and add the same code. This will disable the right-click pop-menu and the ctrl-c key sequence.
For example in a Fill-in object :
1. Select the object and edit code.
2. Select in Section Drop-down field Triggers and click on New button.
3. Select "Three -Button Mouse Events and pick RIGHT-MOUSE-CLICK event on the list
4. Add this line RETURN NO-APPLY. in the Trigger code.
5. Run your application and try to right-click on the fill-in field. The pop-menu should not be displayed.