enable_top_status_line
Void enable_top_status_line (Integer x);
If x is non-zero, the top status line is enabled. If x is zero, the top status line is disabled and hidden.
set_top_status_line
Append an entry to a menu
menu_append_item (menu, name, fun [,client_data])
String_Type menu, name;
String_Type or Ref_Type fun;
Any_Type client_data
The menu_append_item
function appends a menu item called
name
to the menu menu
. If called with 3
arguments,
the third argument must be a string that will get executed or
called when the menu item is selected.
When called with 4
arguments, the fun
argument may be either
a string or a reference to a function. When the item is selected,
the function will be called and client_data
will be passed to
it.
menu_append_popup
Append a popup menu to a menu
menu_append_popup (String_Type parent_menu, String_Type popup_name
The menu_append_popup
function may be used to append a new
popup menu with name popup_name
to the menu parent_menu
,
which may either be another popup menu or a menu bar.
menu_append_item, menu_append_separator
Append a separator to a menu
menu_append_separator (String_Type menu)
The menu_append_separator
function appends a menu item
separator to the menu menu
.
menu_append_item, menu_append_popup
Copy a menu to another
menu_copy_menu (String_Type dest, String_Type src)
Then menu_copy_menu
function copies the menu item, which may
be another popup menu, to another popup menu.
menu_append_popup, menu_append_item
Create a menu bar
menu_create_menu_bar (String_Type name)
The menu_create_menu_bar
function may be used to create a new
menu bar called name
. The new menu bar may be associated with
a buffer via the menu_use_menu_bar
function.
menu_use_menu_bar, menu_append_popup
Delete a menu item
menu_delete_item (String_Type name)
The menu_delete_item
function deletes the menu called
name
and all of its submenus.
To delete the System
menu from the global menu bar, use
menu_delete_item ("Global.S&ystem");
menu_delete_items
Delete the items from a menu
menu_delete_items (String_Type menu)
The menu_delete_items
function deletes all the menu items
attached to a specified popup menu. However, unlike the related
function menu_delete_item
, the popup menu itself will not be
removed.
menu_delete_item, menu_append_popup
Set the initialize menu bar callback
menu_set_init_menubar_callback (Ref_Type cb)
The menu_set_init_menubar_callback
may be used to specify the
function that is to be called whenever a menu bar may need to be
updated. This may be necessary when the user switches buffers or
modes. The callback function must accept a single argument which is
the name of the menubar.
menu_set_select_menubar_callback, menu_create_menu_bar
Set the prefix string to be displayed on the menu bar
menu_set_menu_bar_prefix (String_Type menubar, String_Type prefix)
The menu_set_menu_bar_prefix
specifies the string that is to
be displayed on the specified menu bar. The default prefix is
"F10 key ==> "
.
menu_create_menu_bar
Set the availablity of a menu item
menu_set_object_available (String_Type menuitem, Int_Type flag)
The menu_set_object_available
function may be used to activate
or inactivate the specified menu item, depending upon whether
flag
is non-zero or zero, respectively.
menu_append_item
Set the function to be called when the menu bar is activated
menu_set_select_menubar_callback (String_Type menubar, Ref_Type f)
The menu_set_select_menubar_callback
function is used to
indicate that the function whose reference is f
should be
called whenever the menu bar is selected. The callback function is
called with one argument: the name of the menu bar.
menu_set_init_menubar_callback, menu_set_select_popup_callback
Specify the function to be called prior to a popup
menu_set_select_popup_callback (String_Type popup, Ref_Type f
The menu_set_select_popup_callback
function may be used to
specify a function that should be called just before a popup menu is
displayed. The callback function must be defined to take a single
argument, namely the name of the popup menu.
The basic purpose of this function is to allow the creation of a dynamic popup menu. For this reason, the popup menu will have its items deleted before the callback function is executed.
menu_set_select_menubar_callback, menu_append_item
Associate a menu bar with the current buffer
menu_use_menu_bar (String_Type menubar)
The menu_use_menu_bar
function may be used to associate a
specified menu bar with the current buffer. If no menu bar has been
associated with a buffer, the "Global"
menu bar will be used.
menu_create_menu_bar
set_top_status_line
String set_top_status_line (String str);
This functions sets the string to be displayed at the top of the display. It returns the value of the line that was previously displayed.
enable_top_status_line