I'm hoping to get a little C advice on using gadtools. I'm trying to set
up some gadgets that have no border, are non-hilighting, and respond to
IDCMP_GADGETDOWN messages. I trying to do this in the following way:
gads[i] = CreateGadget(GENERIC_KIND, gadtemp, &newgad, TAG_END);
gads[i]->Activation |= GACT_IMMEDIATE;
gads[i]->GadgetType |= GTYP_BOOLGADGET;
gads[i]->Flags |= GFLG_GADGHNONE;
where gads[] and gadtemp are pointers to struct Gadget. When I compile
this code everything seems to work properly; the window will open up and
the gadgets seem to operate as they should, but I'm getting mysterious
crashes after the window has been opened and closed a few times. I'm not
even sure that this attempt at GENERIC_KIND buttons is the cause, since
I'm also opening multiple windows that share a common port, but I think
I'm handling that properly, so I was just wondering if anyone out there
has had any experience using gadtools' generic gadgets. Thanks for the
help.
Doug Crane