Browse Prior Art Database

Hierarchical Menu Display Structure

IP.com Disclosure Number: IPCOM000107187D
Original Publication Date: 1992-Jan-01
Included in the Prior Art Database: 2005-Mar-21
Document File: 2 page(s) / 62K

Publishing Venue

IBM

Related People

Hatch, RC: AUTHOR [+3]

Abstract

Disclosed is a method for controlling a menu system. A common set of functions is used to scroll right, scroll left, go to a submenu, and go to previous menu.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Hierarchical Menu Display Structure

       Disclosed is a method for controlling a menu system.  A
common set of functions is used to scroll right, scroll left, go to a
submenu, and go to previous menu.

      A tree structure is used to represent hierarchical menus so
that common routines can be used for traversing the menu, thereby,
simplifying the task of writing menu applications.  Each node of the
tree represents a menu item. Each node consists of a data structure
with data relating to the menu item and a right link to point to the
next menu item and a left link to point to the next submenu.  All
nodes must have common right and left link fields.  The rest of the
fields in a node can be specific to a menu.

      In addition, a menu pointer stack is kept.  Each time a left
link is traversed, the pointer to the leftmost node of the new
submenu is pushed onto the stack.  The function to return to the
previous or parent menu then pops the top off of the menu stack and
returns the new top of stack as the pointer to the parent menu.

      The scroll right functions determine which node should be the
first node on the next screen displayed.  The scroll right function
takes as input a pointer to the first node on a menu (the leftmost
node at any level of the tree), the number of items displayed per
screen, and a pointer to the first item currently being displayed on
the screen.  The scroll right function then simply follows right
links, counts nodes...