Article View: comp.sys.amiga.tech
Article #7481Re: AddGadget(),RemoveGadget(),RefreshGadget()
From: Brian Jackson
Date: Sat, 15 Dec 1990 19:48
Date: Sat, 15 Dec 1990 19:48
36 lines
2003 bytes
2003 bytes
In article <1990Dec14.170205.24129@rodan.acs.syr.edu> goldberg@rodan.acs.syr.edu (Ross Goldberg) writes:
>I can not figure out how those 3 above commands work. I need to be able
>to add and remove gadgets so I can position them where defined by the
>user.
All three of these calls are fully documented in the "Includes &
Autodocs" Rom Kernel Manual. (Btw, it's RemoveGadgets() - plural)
>With the 1 gadget defined, I tried to
>RemoveGadget(my_gadget)
>(system hung)
>RemoveGadget(&my_gadget)
>(system request window began to appear and it hung)
>
>I assume it must be attached to the window (my_new_window) but can't figure
>out how and these commands are not documented anywhere that I can find.
All of these commands have the relevant window as an argument. If you
don't have the above-mentioned manual then right now would seem a good
time to get it :)
AddGadget( struct Window *, struct Gadget *, long pos_in_list )
RemoveGadget( struct Window *, struct Gadget * )
RefreshGadgets( struct Gadget *, struct Window *, struct Requester *)
bj
>thanx,
>Ross
-----------------------------------------------------------------------
| Brian Jackson Software Engineer, Commodore-Amiga Inc. GEnie: B.J. |
| bj@cbmvax.cbm.commodore.com or ...{uunet|rutgers}!cbmvax!bj |
| 'Please dosconnect in your mind the concepts "seems to work just |
| fine' and 'Is allowed' - Peter Cherna |
-----------------------------------------------------------------------
Technical Details
Message-ID:
<16553@cbmvax.commodore.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cbmvax!bjReferences:
<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!cbmvax!bj From: bj@cbmvax.commodore.com (Brian Jackson) Newsgroups: comp.sys.amiga.tech Subject: Re: AddGadget(),RemoveGadget(),RefreshGadget() Message-ID: <16553@cbmvax.commodore.com> Date: 15 Dec 90 19:48:04 GMT References: <1990Dec14.170205.24129@rodan.acs.syr.edu> Reply-To: bj@cbmvax.commodore.com (Brian Jackson) Distribution: usa Organization: Commodore, West Chester, PA Lines: 36