softmerlino Absent Member.
Absent Member.
1638 views

Copy & Paste

Jump to solution

Anyone know if is it possible add Ctrl+C & Ctrl+V function to an acucobol project?

In entry field if i press right mouse i can copy and paste but Ctrl+C and Ctrl-V don't work? Some environment problem?

0 Likes
1 Solution

Accepted Solutions
DougP Outstanding Contributor.
Outstanding Contributor.

RE: Copy & Paste

Jump to solution

To implement standard Windows Edit keys in an AcuCOBOL-GT program, all that is required is to add the following lines at the beginning of the program (see note below):

          set environment "KEYSTROKE" to "exception=2001 ^x".

          set environment "KEYSTROKE" to "exception=2002 ^c".

          set environment "KEYSTROKE" to "exception=2003 ^v".

          set environment "KEYSTROKE" to "exception=2004 ^z".

          set environment "KEYSTROKE" to "exception=2005 ^a".

          Set exception value 2001 to cut-selection.  

          Set exception value 2002 to copy-selection.  

          Set exception value 2003 to paste-selection.  

          Set exception value 2004 to undo.  

          Set exception value 2005 to select-all-selection.

NOTE: The above example uses exception values 2001 through 2005.  Make sure to use exception values that are not already being used in the program.

View solution in original post

0 Likes
1 Reply
DougP Outstanding Contributor.
Outstanding Contributor.

RE: Copy & Paste

Jump to solution

To implement standard Windows Edit keys in an AcuCOBOL-GT program, all that is required is to add the following lines at the beginning of the program (see note below):

          set environment "KEYSTROKE" to "exception=2001 ^x".

          set environment "KEYSTROKE" to "exception=2002 ^c".

          set environment "KEYSTROKE" to "exception=2003 ^v".

          set environment "KEYSTROKE" to "exception=2004 ^z".

          set environment "KEYSTROKE" to "exception=2005 ^a".

          Set exception value 2001 to cut-selection.  

          Set exception value 2002 to copy-selection.  

          Set exception value 2003 to paste-selection.  

          Set exception value 2004 to undo.  

          Set exception value 2005 to select-all-selection.

NOTE: The above example uses exception values 2001 through 2005.  Make sure to use exception values that are not already being used in the program.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.