(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/intuition.h>

struct MenuItem * ItemAddress (menustrip , menunumber)

LOCATION
In IntuitionBase at offset 24

SYNOPSIS
struct Menu * menustrip
UWORD menunumber

FUNCTION
Returns the address of the menuitem 'menunumber' of 'menustrip'. The number is the one you get from intuition after the user has selected a menu. The menunumber must be well-defined. Valid numbers are MENUNULL, which makes the routine return NULL, or valid item number of your menustrip, which contains - a valid menu number - a valid item number - if the menu-item has a sub-item, a valid sub-item number Menu number and item number must be specified. Sub-item, if available, is optional, therefore this function returns either the item or sub-item.

INPUTS
menustrip
Pointer to the first menu of the menustrip.
menunumber
Packed value describing the menu, item and if
sub
item.

RESULT
Returns NULL for menunumber == MENUNULL or the address of the menuitem described by menunumber.

EXAMPLE

SEE ALSO

NOTES

BUGS

INTERNALS

HISTORY
25.01.1999 hkiel
Implemented functions