CompuServe Messages

#IDCMP IAddress

    28-Jul-89 21:48:49
Sb: #59298-#IDCMP IAddress
Fm: Michael A McCormick 76046,1057
To: Mike Berro 76004,2001
Mike, Getting the GadgetID was what was giving me trouble in the first place. Whenever IDCMP got a message, I would load IAddress into a Gadget pointer and then grab the ID by doing 'id = gadgptr->GadgetID. When I started using menus, IAddress would point to some unknown area and when it got cast to a Gadget structure pointer, GadgetID would be some wierd number from Hell. Now I just grab GadgetID when Class is GADGETUP or GADGETDOWN. By the way, my GadgetID *is* set so I know which of three identical areas of my program I clicked in. That does cut the search down by a third. -Mike