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

102 lines
5.9 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="MNUBARSW (Menu-Bar Switch Key) keyword for display files" />
<meta name="abstract" content="Use this file- or record-level keyword to assign a CA key to be the Switch-to-menu-bar key." />
<meta name="description" content="Use this file- or record-level keyword to assign a CA key to be the Switch-to-menu-bar key." />
<meta name="DC.subject" content="MNUBARSW (Menu-Bar Switch Key) keyword, Menu-Bar Switch Key (MNUBARSW) keyword, menu-bar switch key, assigning" />
<meta name="keywords" content="MNUBARSW (Menu-Bar Switch Key) keyword, Menu-Bar Switch Key (MNUBARSW) keyword, menu-bar switch 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="rzakcmstmnubars" />
<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>MNUBARSW (Menu-Bar Switch Key) keyword for display files</title>
</head>
<body id="rzakcmstmnubars"><a name="rzakcmstmnubars"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">MNUBARSW (Menu-Bar Switch Key) keyword for display files</h1>
<div><p>Use this file- or record-level keyword to assign a CA key to be
the Switch-to-menu-bar key.</p>
<div class="section"><div class="p">If the menu-bar switch key is active and a menu
bar is displayed, pressing the CA key will do one of the following tasks:
<ul><li>If the cursor is located on the application record, pressing the switch
key moves the cursor to the first field in the menu bar.</li>
<li>If the cursor has been moved to the menu
bar using the switch key, pressing the switch key again moves the cursor back
to the location where the cursor was when the switch key was pressed to move
the cursor into the menu bar.</li>
<li>If the cursor has been moved to the menu bar manually (for example, using
the cursor movement keys), pressing the switch key moves the cursor to the
first input-capable field in the application record.</li>
</ul>
</div>
<p>The format of the keyword is <samp class="codeph">MNUBARSW [(CAnn)]</samp>.</p>
<p>The
CAnn parameter is optional. If not specified, the default is CA10. Valid values
for the CAnn parameter are CA01 through CA24.</p>
<p>Within a record, the CAnn
key specified by the MNUBARSW keyword cannot be specified again using another
keyword (such as MNUCNL). Because MNUBARSW at the file level extends to all
records in the file, this must be considered when assigning a CAnn key.</p>
<p>If
the MNUBARSW keyword is specified on the record, the CAnn key or default CA10
key can be used only as a CA key on other records, not as a CF key.</p>
<p>The
MNUBARSW 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 MNUBARSW keyword:</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A MNUBARSW(CA10)
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
A</pre>
<p>In this example, CA10 is defined as the Switch-to-menu-bar
key for all records in the file. When the cursor is located anywhere except
in the menu bar and CA10 is pressed, the cursor is moved to the File choice
on the menu bar. If CA10 is pressed again while the cursor is located anywhere
in the menu bar, the cursor is moved back to its previous location within
the APPSCR record.</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>