home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17407 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.8 KB  |  43 lines

  1. Path: sparky!uunet!olivea!charnel!rat!usc!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!navajo!shulick
  2. From: shulick@navajo.ucs.indiana.edu (Sam Hulick)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Sorry, can't learn from includes alone
  5. Message-ID: <BzBy9v.Izp@usenet.ucs.indiana.edu>
  6. Date: 16 Dec 92 02:15:29 GMT
  7. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  8. Reply-To: shulick@navajo.ucs.indiana.edu
  9. Organization: Vallen Software
  10. Lines: 29
  11. Originator: shulick@navajo
  12. Nntp-Posting-Host: navajo.ucs.indiana.edu
  13.  
  14.  
  15. To those of you who said it's possible to learn 2.0 programming on the
  16. includes... sorry.  Look at this:
  17.  
  18. struct NewGadget
  19.     {
  20.     WORD ng_LeftEdge, ng_TopEdge;   /*  gadget position */
  21.     WORD ng_Width, ng_Height;    /*  gadget size */
  22.     UBYTE *ng_GadgetText;     /*  gadget label */
  23.     struct TextAttr *ng_TextAttr;   /*  desired font for gadget label */
  24.     UWORD ng_GadgetID;        /*  gadget ID */
  25.     ULONG ng_Flags;        /*  see below */
  26.     APTR ng_VisualInfo;       /*  Set to retval of GetVisualInfo() */
  27.     APTR ng_UserData;         /*  gadget UserData */
  28.     };
  29.  
  30. What's ng_GadgetID supposed to do?  What should I set it to?  What's the
  31. ng_UserData?  The includes do NOT explain these.  Isn't there some book
  32. available that does?  For instance, Sybex put out an EXCELLENT book
  33. called "Amiga Programmer's Handbook" which totally explains the Amiga C
  34. functions (OS 1.3).. it explains what you should set certain things to,
  35. etc. etc.  Is there some kind of book like this for OS 2.0?  I want to
  36. make gadgets, but I have no clue without any good books.
  37.  
  38. -- 
  39.     // Amiga 3000   ___ \ Sam Hulick: shulick@indiana.edu (NeXTmail OK!)
  40.    // 68030 25 MHz /__/\ \ My opinions wear combat boots.  Or whatever.
  41. \\// OS 2.04       \__\/ / "Walk!  Not bloody likely.  I am going in a
  42.  \/                     / taxi."  --George Bernard Shaw
  43.