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 » AddGList

NAME

	AddGList -- Add a linked list of gadgets to a window or requester.

SYNOPSIS

	RealPosition = AddGList( Window, Gadget, Position, Numgad, Requester )
D0 A0 A1 D0 D1 A2
UWORD AddGList( struct Window *, struct Gadget *, UWORD, WORD,
struct Requester * );

FUNCTION

	Adds the list of gadgets to the gadget list of the given window
or requester linked in at the position in the list specified by
the position argument.
See AddGadget() for more information about gadget list position,
and more information about gadgets in general.
The requester parameter will be ignored unless the GTYP_REQGADGET
bit is set in the GadgetType field of the first gadget in the list.
In that case, the gadget list is added to the requester gadgets.
NOTE: be sure that GTYP_REQGADGET is either set or cleared consistently
for all gadgets in the list. NOTE ALSO: The window parameter
should point to the window that the requester (will) appear in.
Will add 'Numgad' gadgets from gadget list linked by the field
NextGadget, or until some NextGadget field is found to be NULL. Does
not assume that the Numgad'th gadget has NextGadget equal to NULL.
NOTE WELL: In order to link your gadget list in, the NextGadget
field of the Numgad'th (or last) gadget will be modified. Thus, if
you are adding the first 3 gadgets from a linked list of five gadgets,
this call will sever the connection between your third and fourth
gadgets.

INPUTS

	Window = pointer to the window to get your gadget
Gadget = pointer to the first gadget to be added
Position = integer position in the list for the new gadget
(starting from zero as the first position in the list)
Numgad = the number of gadgets from the linked list to be added
if Numgad equals -1, the entire null-terminated list of
gadgets will be added.
Requester = the requester the gadgets will be added to if the
GTYP_REQGADGET GadgetType flag is set for the first gadget
in the list

RESULT

	Returns the position of where the first gadget in the list was actually
added.

BUGS

SEE ALSO

AddGadget(), RemoveGadget(), RemoveGList()

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

DJ
HZ
AOA
ANA

Comments:

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