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