home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!ames!agate!dog.ee.lbl.gov!news!nosc!crash!orbit!pnet51!chucks
- From: chucks@pnet51.orb.mn.org (Erik Funkenbusch)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Multiple Windows
- Message-ID: <8771@orbit.cts.com>
- Date: 11 Dec 92 10:05:03 GMT
- Sender: news@orbit.cts.com
- Organization: People-Net [pnet51], Minneapolis, MN.
- Lines: 32
-
- Is there an easier way of telling which Window a Window pointer is pointing
- without resorting to the UserData field?
-
- I have an application where i have several windows that open up. Rather than
- calling a different IDCMP Dispatch function for each window, i used unique
- gadget ID's for every gadget in the program, even if they have different
- windows.
-
- My problem here is that i'd rather use a program like GadToolsBox to design
- everything, and GadToolsBox defaults each gadget id to 0 for each new window.
- Sure, i can modify the generated source, but then if i modify my GadToolsBox
- image and regenerate i need to make these modifications again.
-
- I can use the STart ID field in the window data requester, however this means
- that i have to know how many gadgets are in the other windows, and heaven help
- me if i add more to a previous window..
-
- So, my solution would be to have my IDCMP Dispatch routine know which window
- it's dealing with and handle the appropriate gadget based on that.
-
- I can think of only one way to legally do this, and that's use the UserData
- field to point to a window number or something. Is there an easier way?
-
- As a side note, has anyone else noticed that GadtoolsBox 1.3 doesn't generate
- the proper IDCMP flags for gadgets when you start adding a lot of windows?
-
- .-----------------------------------------------------------------------------.
- | UUCP: {crash tcnet petrus quest}!orbit!pnet51!chucks | Amiga, IBM, and any |
- | ARPA: crash!orbit!pnet51!chucks@nosc.mil | system you let me |
- | INET: chucks@pnet51.orb.mn.org | get my grubby mind |
- |------------------------------------------------------| into. |
- | Programmer at large, employment options welcome, inquire within. |
-