Difference between revisions of "SET MENUBAR"

From Recital Documentation Wiki
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET MENUBAR=
 
 
 
==Class==
 
Screen Forms
 
 
 
 
==Purpose==
 
==Purpose==
 
Enable or disable the menu bar in forms
 
Enable or disable the menu bar in forms
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[APPEND]], [[BROWSE]], [[CREATE SCREEN]], [[EDIT]], [[MODIFY SCREEN]], [[QUERY]], [[SET PREFORM]], [[SET PRERECORD]], [[READMODE()]]
+
[[APPEND]], [[BROWSE]], [[CREATE SCREEN]], [[EDIT]], [[Function Keys]], [[MODIFY SCREEN]], [[QUERY]], [[READMODE()]], [[SET PREFORM]], [[SET PRERECORD]]
  
  
Line 23: Line 16:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
if menuitem()="APPEND"
 
if menuitem()="APPEND"
set menubar off
+
    set menubar off
append
+
    append
 
else
 
else
set menubar on
+
    set menubar on
 
edit
 
edit
endif</pre>
+
endif</code>
  
  
 
==Products==
 
==Products==
Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|MENUBAR]]
 
[[Category:Set_Commands|MENUBAR]]
 +
[[Category:Menus]]
 +
[[Category:Menus Set Commands]]
 +
[[Category:Screen Forms]]
 +
[[Category:Screen Forms Set Commands]]

Latest revision as of 16:22, 23 November 2009

Purpose

Enable or disable the menu bar in forms


Syntax

SET MENUBAR ON | OFF | (<expL>)


See Also

APPEND, BROWSE, CREATE SCREEN, EDIT, Function Keys, MODIFY SCREEN, QUERY, READMODE(), SET PREFORM, SET PRERECORD


Description

When the MENUBAR is set ON, it enables use of the [MENU] key from within forms to activate user-defined menus. If MENUBAR is set OFF, the [MENU] is disabled from inside forms for activating user-defined menus. This is particularly useful when using the same form for APPEND and EDIT operations. The default setting for MENUBAR is ON.


Example

if menuitem()="APPEND"
    set menubar off
    append
else
    set menubar on
edit
endif


Products

Recital