Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!julius.cs.uiuc.edu!wuarchive!uunet!tronsbox!bleys From: bleys@tronsbox.xei.com (Bill Cavanaugh) Newsgroups: comp.sys.amiga.tech Subject: AddGadget(),RemoveGadget(),RefreshGadget() Message-ID: <2769aefa-bb1.1comp.sys.amiga.tech-1@tronsbox.xei.com> Date: 15 Dec 90 05:06:08 GMT References: <1990Dec14.170205.24129@rodan.acs.syr.edu> Lines: 39 From the old Intuition Reference Manual (1986), and probably in the Includes and Autodocs (I don't have my copy handy)... begin-quote AddGadget(AddPtr,Gadget,Position) This function adds a gadget to the gadget list of a window. AddPtr is a pointer to the window Gadget is a pointer to the gadget. Position is where the new gadget should go in the list. RemoveGadget(RemPtr,Gadget) This function removes a gadget from the gadget list of the specified window. RemPtr is a pointer to the window from which the gadget is to be removed. Gadget is a pointer to the gadget to be removed. RefreshGadgets(Gadgets,Ptr,Requester) [This function] redraws all of the gadgets in the gadget list of a window or reqeuster, starting with the specified gadget. You might want to use this if you have modified the imagery of your gadgets and want to display the new imagery. You might also use it if you think some graphic operation has trashed the imagery of the gadgets. Gadgets points to the gadget where the redrawing should start. Ptr points to the Window structure. Requester points to a requester or is NULL. end-quote. I hope this helps... /**************************************************************** * All of the above copyright by the below. * * Bill Cavanaugh uunet!tronsbox!bleys * * "A language is a dialect with an army and a navy." * ****************************************************************/