(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/gadtools.h>
#include <exec/types.h>
#include <intuition/intuition.h>
#include <utility/tagitem.h>
#include <libraries/gadtools.h>

struct Gadget * CreateGadgetA (kind , previous , ng , taglist)

LOCATION
In GadToolsBase at offset 5

SYNOPSIS
ULONG kind
struct Gadget * previous
struct NewGadget * ng
struct TagItem * taglist

FUNCTION
Creates a gadtools gadget.

INPUTS
kind
Kind of gadget. See <libraries/gadtools.h> for a list of all possible kinds.
previous
Pointer to the previous gadget in gadget-list. Create the first "gadget" with CreateContext(). This may be NULL, in which case CreateGadgetA() fails.
ng
Pointer to struct NewGadget. See <libraries/gadtools.h>.
taglist
Additional tags. See <libraries/gadtools.h>.

RESULT
A pointer to a gadget or NULL to indicate an error.

EXAMPLE

SEE ALSO
CreateContext(), FreeGadgets(), <libraries/gadtools.h>

NOTES

BUGS

INTERNALS

HISTORY
21.07.1999 stegerg
had problems if ng_GadgetText was NULL
08.04.1999 stegerg
no more GMR_INTERIMUPDATE
20.10.1998 hkiel
Amiga Research OS
11.08.1998 srittau
New macro VI() used
16.04.1998 srittau
Slightly improved function descriptions
05.04.1998 nlorentz
Added LISTVIEW_KIND. That was the last GT gadget, only menus (and of course bugfixes) left
30.03.1998 nlorentz
Added STRING_KIND and INTEGER_KIND
29.03.1998 nlorentz
Added SROLLER_KIND + bugfixes in SLIDER_KIND. Sorry about all the debug code. Will remove it when GT is complete
27.03.1998 nlorentz
Added PALETTE_KIND, TEXT_KIND, NUMBER_KIND and SLIDER_KIND
25.12.1997 srittau
Added CYCLE_KIND (needs aroscycle.gadget)
13.10.1997 srittau
Put MX_KIND into a separate class

Improvements and bugfixes

30.09.1997 srittau
Cleaned up a bit

Added first version of MX_KIND (does not work, yet)

09.07.1997 srittau
Added CHECKBOX_KIND. (Don't try to use, yet.)
03.07.1997 srittau
o DrawBevelBoxA() uses now frameiclass, and falls back to self-drawn bevels

o Added CHECKBOX_KIND (doesn't work yet)

01.07.1997 srittau
o Fixes o Hack to make amiga.lib stubs working o BUTTON_KIND does now work
04.04.1997 ldp
Gadtools -> GadTools
25.03.1997 srittau
Removed some stuff that don't belong in a public version
25.03.1997 srittau
Initial revision