NAME GU_CreateContext -- Create a space for GadTools context data. SYNOPSIS gad = GU_CreateContext(glistptr) D0 A0 struct Gadget *GU_CreateContext(struct Gadget **); FUNCTION This function is a replacement for the GadTools version. Use this instead. This will make your program to take advantage of future enhancements of gadutil. Creates a place for GadTools to store any context data it might need for your window. In reality, an unselectable invisible gadget is created, with room for the context data. This function also establishes the linkage from a glist type pointer to the individual gadget pointers. Call this function before any of the other gadget creation calls. INPUTS glistptr - Address of a pointer to a Gadget, which was previously set to NULL. When all the gadget creation is done, you may use that pointer as your NewWindow.FirstGadget, or in intuition.library/AddGList(), intuition.library/RefreshGList(), FreeGadgets(), etc. RESULT gad - pointer to context gadget, or NULL if failure. NOTES Look in gadtools/CreateContext() for more information. SEE ALSO gadtools/CreateContext()
Converted on 19 Jul 1996 with RexxDoesAmigaGuide2HTML by Michael Ranner.