home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 884 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: pravda.aa.msen.com!not-for-mail
  2. From: crandall@mail.msen.com (Chad Randall)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Problems with BOOPSI prop gadget
  5. Date: 12 Jan 1996 14:12:58 GMT
  6. Organization: Msen, Inc. -- Ann Arbor, MI.
  7. Distribution: world
  8. Message-ID: <4d5q9a$ob7@pravda.aa.msen.com>
  9. References: <3395.6583T1242T1959@sn.no> <68245089%suamor@student.uni-tuebingen.de>
  10. NNTP-Posting-Host: conch.aa.msen.com
  11. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  12.  
  13. Reinhard Katzmann (Suamor@student.uni-tuebingen.de) wrote:
  14. : Rune Elvemo schrieb in comp.sys.amiga.programmer ueber "Problems with
  15. : BOOPSI prop gadget":
  16. : >
  17. : >      PGA_NewLook, TRUE,
  18. :        ^^^^^^^^^^^
  19. : I thought this would be only used for menus!?
  20.  
  21. No.  Prop gadgets have a newlook under 3.0.  You
  22. are thinking of WFLG_NewLookMenus.
  23.  
  24. : > /* set the window of the program to the target */
  25. : >      ICA_TARGET, ICTARGET_IDCMP,
  26. : You don't need this, it is only used to communicate with other
  27. : boopsi objects.            ^^^^
  28.  
  29. Wrong again.  ICTARGET_IDCMP states that the messages should be
  30. sent to the window's event port (userport).  ICA_TARGET
  31. is *usually* used to talk to other objects.
  32.  
  33. : > Anyone who knows what is wrong with this?
  34. : Simple. You forgot to add the gadget: AddGadget(window,(struct Gadget *)prop,-1L)
  35.  
  36. Don't forget to refreshglist() it too.  Or, create it before
  37. opening the window and pass it as WA_GADGETS value.
  38.  
  39. crandall@msen.com
  40.  
  41.