home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.uni-tuebingen.de!not-for-mail
- From: "Reinhard Katzmann" <Suamor@student.uni-tuebingen.de>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Problems with BOOPSI prop gadget
- Date: Fri, 12 Jan 1996 00:17:33 -0500
- Organization: InterNetNews at ZDV Uni-Tuebingen
- Distribution: world
- Message-ID: <68245089%suamor@student.uni-tuebingen.de>
- References: <3395.6583T1242T1959@sn.no>
- Reply-To: "suamor" <suamor@student.uni-tuebingen.de>
- NNTP-Posting-Host: gw192.informatik.uni-tuebingen.de
- X-NewsReader: IntuiNews 1.3a (7.9.95)
-
- Rune Elvemo schrieb in comp.sys.amiga.programmer ueber "Problems with
- BOOPSI prop gadget":
- > I have a problem when using BOOPSI gadgets.... As far as I am concerned,
- > this
- > program should work, but when I compile it, and start it, I can't see
- > the
- > gadget..........
- >
- > What this program is SUPPOSED to do, is to open a window with a prop
- > gadget,
- > and the prop gadget will send messages to the program when it
- > changes....
- >
- >
- [includes away]
-
- > struct Library *IntuitionBase;
- >
- > struct Window *win;
- > struct IntuiMessage *msg;
- > struct Gadget *prop;
- ^^^^^^^^^^^^^
- Boopsi Gadgets are created using Object *
-
- > /* prototype */
- > BOOL MakeProp(void);
- >
- > #define PROPGADID 1L
- >
- > if (pub = LockPubScreen("Workbench"))
- ^^^^^^^^^^^^
- Workbench is default (except you are using extra PubScreens)
-
- [...]
-
- > {
- > NotEnough = MakeProp();
- >
- > if (!NotEnough)
- > HandleIDCMP();
- >
- [...]
-
- > if (prop = NewObject(NULL, "propgclass",
- [some GA's]
-
- >
- > PGA_Total, 50,
- > PGA_Top, 1,
- > PGA_Visible, 10,
- >
- > PGA_NewLook, TRUE,
- ^^^^^^^^^^^
- I thought this would be only used for menus!?
-
- > /* set the window of the program to the target */
- > ICA_TARGET, ICTARGET_IDCMP,
-
- You don't need this, it is only used to communicate with other
- boopsi objects.
-
- [...]
-
- > Anyone who knows what is wrong with this?
-
- Simple. You forgot to add the gadget: AddGadget(window,(struct Gadget *)prop,-1L)
-
- - Reinhard Katzmann
-
- ---
- E-Mail: suamor@student.uni-tuebingen.de
-
- One day I hope to finish my RPS Pertergrin
- Concept for Pertergin (yet in german) avalaible on Request
- Current Amiga-Project: GuideTool (GUI) V1.1BETA
-
-