home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15614 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.8 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!decwrl!concert!rutgers!cbmvax!cbmehq!cbmger!edohwg!heinz
  2. From: heinz@edohwg.adsp.sub.org (Heinz Wrobel)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Amiga Application Framework
  5. Message-ID: <heinz.04d0@edohwg.adsp.sub.org>
  6. Date: 3 Nov 92 19:35:43 GMT
  7. References: <68764@cup.portal.com>
  8. Organization: Edotronik GmbH
  9. Lines: 33
  10.  
  11. In article <68764@cup.portal.com> Lee_Robert_Willis@cup.portal.com writes:
  12. >Now if you want to add support for multiple windows, this event loop
  13. >gets really ugly.
  14.  
  15. Why? Each window has a UserData field which you can use to point to your
  16. window-specific project data. With each IntuiMessage you get the window
  17. ptr. So there's not really a problem.
  18.  
  19. >If you want to add support for multiple projects, you can't have all
  20. >those global gadgets.    (You need new copies for each project)
  21.  
  22. Global gadgets? What do you mean? global gadget structures? You can't add
  23. that to multiple windows anyway. If you use gadtools or some small wrapper
  24. functions around gadtools, you get copies of your gadgets for free ;^)
  25.  
  26. >If you want to add support for multiple screens, you need some
  27. >way of keeping track of the screens.
  28.  
  29. True. I keep an exec list for each _used_ screen including the DrawInfo and
  30. the font sizes I typically need. It's like an extended LockPubScreen call
  31. that behaves like OpenFont. It manages a usecount for a list entry and
  32. discards it if it is no longer needed. Not much work at all. Really just a
  33. few lines compared to other things.
  34.  
  35. >Lee      Lee_Robert_Willis@cup.portal.com
  36.  
  37. --
  38. Heinz Wrobel, Edotronik GmbH (ECG018)
  39. FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
  40. Path: cbmehq!cbmger!edohwg!heinz@cbmvax.commodore.com
  41. "It's good to have a mouse, it's faster if you can do without one..."
  42. "He who doesn't develop with an A2024 doesn't know about font independent
  43.  user interfaces..."
  44.