ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakc_5.4.0.1/rzakcmstmnucnl.htm

101 lines
6.0 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="MNUCNL (Menu-Cancel Key) keyword for display files" />
<meta name="abstract" content="Use this file- or record-level keyword to assign a CA key to be the cancel key for menu bars or pull-down menus." />
<meta name="description" content="Use this file- or record-level keyword to assign a CA key to be the cancel key for menu bars or pull-down menus." />
<meta name="DC.subject" content="MNUCNL (Menu-Cancel Key) keyword, Menu-Cancel Key (MNUCNL) keyword, menu-cancel key, assigning" />
<meta name="keywords" content="MNUCNL (Menu-Cancel Key) keyword, Menu-Cancel Key (MNUCNL) keyword, menu-cancel key, assigning" />
<meta name="DC.Relation" scheme="URI" content="rzakcmstkeyent.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzakcmstmnucnl" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>MNUCNL (Menu-Cancel Key) keyword for display files</title>
</head>
<body id="rzakcmstmnucnl"><a name="rzakcmstmnucnl"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">MNUCNL (Menu-Cancel Key) keyword for display files</h1>
<div><p>Use this file- or record-level keyword to assign a CA key to be
the cancel key for menu bars or pull-down menus.</p>
<div class="section"><p>When the MNUCNL keyword is active and a pull-down menu is displayed,
pressing the CA key cancels the pull-down menu and returns the cursor to the
choice in the menu bar. If no pull-down menu is displayed and the cursor is
located in the menu bar, pressing the CA key cancels the menu bar and returns
the cursor to the application screen. If no pull-down menu is displayed and
the cursor is on the application screen, pressing the CA key returns control
to the application.</p>
<div class="p">The format of the keyword is: <pre>MNUCNL[(CAnn [response-indicator])]</pre>
</div>
<p>The
CAnn parameter is optional. If not specified, the default is CA12. Valid values
are CA01 through CA24.</p>
<p>The response-indicator parameter is optional.
The parameter is set on when the MNUCNL keyword is active on a record other
than a menu bar or pull-down menu, and control is being returned to the application.</p>
<p>Within
a record, the CAnn key specified by the MNUCNL keyword cannot be specified
again using another keyword (such as MNUBARSW). Because MNUCNL at the file-level
extends to all records in the file, this must be considered when assigning
a CAnn key.</p>
<p>If the MNUCNL keyword is specified on the record, the CAnn
key or default CA12 key can be used only as a CA key on other records, not
as a CF key.</p>
<p>The MNUCNL keyword is allowed only in a file containing
a menu-bar record.</p>
<p>Option indicators are valid for this keyword.</p>
</div>
<div class="example"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
the MNUCNL keyword:</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A MNUCNL(CA12 12)
A R MENUBAR MNUBAR
A MNUFLD 2Y 0B 1 2
A MNUBARCHC(1 PULLFILE +
A '&gt;File ')
A 01 MNUBARCHC(2 PULLEDIT +
A '&gt;Edit ')
A
A R PULLEDIT PULLDOWN
A F1 1D 0B 1 2RANGE(1 3)
A 1 5'1. Undo '
A 2 4'2. Mark '
A 3 4'3. Copy '
A :
A :
A R APPSCR MNUBARDSP(MENUBAR &amp;MNUCHOICE);
A FIELD1 10A B 10 12
A FIELD2 5S 0B 14 12
A 24 1'F12=Cancel '
A MNUCHOICE 2S 0H</pre>
<p>In this example, CA12
is defined as the cancel key for all records in the file. If CA12 is pressed
while the pull-down menu, PULLEDIT, is displayed, the pull-down menu is canceled.
If CA12 is pressed while the cursor is located on the menu bar (no pull-down
menus are displayed), the menu bar is canceled and the cursor is moved back
to the application record. If CA12 is pressed while the cursor is not located
on the menu bar and no pull-down menu is displayed, response indicator 12
is set on and control is returned to the application program.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakcmstkeyent.htm" title="You type the keyword entries that define display files in positions 45 through 80 (functions).">DDS keyword entries for display files (positions 45 through 80)</a></div>
</div>
</div>
</body>
</html>