home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!vtserf!csugrad!jaker
- From: jaker@csugrad.cs.vt.edu (Jake Rose)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Sorry, can't learn from includes alone
- Message-ID: <BzDD8M.1FG@csugrad.cs.vt.edu>
- Date: 16 Dec 92 20:36:22 GMT
- References: <BzBy9v.Izp@usenet.ucs.indiana.edu>
- Organization: Virginia Tech Computer Science Dept, Blacksburg, VA
- Lines: 40
-
- shulick@navajo.ucs.indiana.edu (Sam Hulick) writes:
-
- >To those of you who said it's possible to learn 2.0 programming on the
- >includes... sorry. Look at this:
-
- >struct NewGadget
- > {
- > WORD ng_LeftEdge, ng_TopEdge; /* gadget position */
- > WORD ng_Width, ng_Height; /* gadget size */
- > UBYTE *ng_GadgetText; /* gadget label */
- > struct TextAttr *ng_TextAttr; /* desired font for gadget label */
- > UWORD ng_GadgetID; /* gadget ID */
- > ULONG ng_Flags; /* see below */
- > APTR ng_VisualInfo; /* Set to retval of GetVisualInfo() */
- > APTR ng_UserData; /* gadget UserData */
- > };
-
- >What's ng_GadgetID supposed to do? What should I set it to? What's the
- >ng_UserData? The includes do NOT explain these. Isn't there some book
- >available that does? For instance, Sybex put out an EXCELLENT book
- >called "Amiga Programmer's Handbook" which totally explains the Amiga C
- >functions (OS 1.3).. it explains what you should set certain things to,
- >etc. etc. Is there some kind of book like this for OS 2.0? I want to
- >make gadgets, but I have no clue without any good books.
-
- The GadgetID is whatever you want it to be, as is the ng_UserData field.
- These are there so you can label your own Gadgets with whatever number you
- like and so you can attach other information to the gadget easily. That's
- why they're not explained, I suppose. You can learn to program the Amiga
- from the libraries book, the includes, and other peoples' source code.
-
- > // Amiga 3000 ___ \ Sam Hulick: shulick@indiana.edu (NeXTmail OK!)
- > // 68030 25 MHz /__/\ \ My opinions wear combat boots. Or whatever.
- >\\// OS 2.04 \__\/ / "Walk! Not bloody likely. I am going in a
- > \/ / taxi." --George Bernard Shaw
- --
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- Jake Rose :: Amazing but true: There is so much sand in Northern
- jaker@csugrad.cs.vt.edu :: Africa that if spread out it would cover the Sahara.
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-