🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #7488

AddGadget(),RemoveGadget(),RefreshGadget()

#7488
From: Bill Cavanaugh
Date: Sat, 15 Dec 1990 05:06
40 lines
1972 bytes
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."        *
 ****************************************************************/
Technical Details
Message-ID: <2769aefa-bb1.1comp.sys.amiga.tech-1@tronsbox.xei.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!julius.cs.uiuc.edu!wuarchive!uunet!tronsbox!bleys
References: <1990Dec14.170205.24129@rodan.acs.syr.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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