a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 intuition.library
  ActivateGadget
  ActivateWindow
  AddClass
  AddGList
  AddGadget
  AllocRemember
  AllocScreenBuffer
  AutoRequest
  BeginRefresh
  BuildEasyRequestArgs
  BuildSysRequest
  ChangeScreenBuffer
  ChangeWindowBox
  ClearDMRequest
  ClearMenuStrip
  ClearPointer
  CloseScreen
  CloseWindow
  CloseWorkBench
  CurrentTime
  DisplayAlert
  DisplayBeep
  DisposeObject
  DoGadgetMethodA
  DoubleClick
  DrawBorder
  DrawImage
  DrawImageState
  EasyRequestArgs
  EndRefresh
  EndRequest
  EraseImage
  FreeClass
  FreeRemember
  FreeScreenBuffer
  FreeScreenDrawInfo
  FreeSysRequest
  GadgetMouse
  GetAttr
  GetDefPrefs
  GetDefaultPubScreen
  GetPrefs
  GetScreenData
  GetScreenDrawInfo
  HelpControl
  InitRequester
  IntuiTextLength
  ItemAddress
  LendMenus
  LockIBase
  LockPubScreen
  LockPubScreenList
  MakeClass
  MakeScreen
  ModifyIDCMP
  ModifyProp
  MoveScreen
  MoveWindow
  MoveWindowInFrontOf
  NewModifyProp
  NewObject
  NextObject
  NextPubScreen
  ObtainGIRPort
  OffGadget
  OffMenu
  OnGadget
  OnMenu
  OpenScreen
  OpenScreenTagList
  OpenWindow
  OpenWindowTagList
  OpenWorkBench
  PointInImage
  PrintIText
  PubScreenStatus
  QueryOverscan
  RefreshGList
  RefreshGadgets
  RefreshWindowFrame
  ReleaseGIRPort
  RemakeDisplay
  RemoveClass
  RemoveGList
  RemoveGadget
  ReportMouse
  Request
  ResetMenuStrip
  RethinkDisplay
  ScreenDepth
  ScreenPosition
  ScreenToBack
  ScreenToFront
  ScrollWindowRaster
  SetAttrsA
  SetDMRequest
  SetDefaultPubScreen
  SetEditHook
  SetGadgetAttrsA
  SetMenuStrip
  SetMouseQueue
  SetPointer
  SetPrefs
  SetPubScreenModes
  SetWindowPointerA
  SetWindowTitles
  ShowTitle
  SizeWindow
  SysReqHandler
  TimedDisplayAlert
  UnlockIBase
  UnlockPubScreen
  UnlockPubScreenList
  ViewAddress
  ViewPortAddress
  WBenchToBack
  WBenchToFront
  WindowLimits
  WindowToBack
  WindowToFront
  ZipWindow
Include
GuruMeditation
Docs » Autodocs » intuition.library » ItemAddress

NAME

	ItemAddress -- Returns the address of the specified MenuItem.

SYNOPSIS

	Item = ItemAddress( MenuStrip, MenuNumber )
D0 A0 D0
struct MenuItem *ItemAddress( struct Menu *, UWORD );

FUNCTION

	This routine feels through the specified menu strip and returns the 
address of the item specified by the menu number. Typically,
you will use this routine to get the address of a menu item from
a menu number sent to you by Intuition after user has chosen from
a window's menus.
This routine requires that the arguments are well-defined.
MenuNumber may be equal to MENUNULL, in which case this routine returns
NULL. If MenuNumber doesn't equal MENUNULL, it's presumed to be a
valid item number selector for your menu strip, which includes:
- a valid menu number
- a valid item number
- if the item specified by the above two components has a
sub-item, the menu number may have a sub-item component, too.
Note that there must be BOTH a menu number and an item number.
Because a sub-item specifier is optional, the address returned by
this routine may point to either an item or a sub-item.

INPUTS

	MenuStrip = a pointer to the first menu in your menu strip
MenuNumber = the value which contains the packed data that selects
the menu and item (and sub-item). See the Intuition Reference
Manual for information on menu numbers.

RESULT

	If MenuNumber == MENUNULL, this routine returns NULL,
else this routine returns the address of the menu item specified
by MenuNumber.

BUGS

SEE ALSO

The "Menus" chapter of the Intuition Reference Manual, or the Amiga ROM Kernel Manual

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Andromeda

AOA
RSI
SCX
FC

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se