Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ncar!gatech!purdue!haven!wam.umd.edu!walrus From: walrus@wam.umd.edu (Udo K Schuermann) Newsgroups: comp.sys.amiga.programmer Subject: HELP: Mutual Exclude Gadgets Message-ID: <1991Mar3.213617.15923@wam.umd.edu> Date: 3 Mar 91 21:36:17 GMT Sender: usenet@wam.umd.edu (USENET Posting) Organization: University of Maryland at College Park Lines: 68 [Burp!] I seem to have a lot of trouble with gadgets ... I've been trying to get Mutually Exclusive Gadgets to work, i.e. click on one and the other gets unselected. It doesn't seem to want to work for me. Below is the source for the window and two gadgets which I've used to test it. If I compile this thing one more time and it doesn't work I'll go mad! Who can tell me what I'm doing wrong??? EMail please. Thank you VERY much! ._. Udo Schuermann And now for something completely different: ( ) walrus@wam.umd.edu An Iraqi dictator without his underpants. Source follows: struct Gadget Gadget2 = { NULL, 153,20, 94,23, SELECTED, TOGGLESELECT, BOOLGADGET, (APTR)&Border1, NULL, NULL, 1, /* exclude: 00000001b first gadget in list */ NULL, 2, NULL }; struct Gadget Gadget1 = { &Gadget2, 33,20, 94,23, SELECTED, TOGGLESELECT, BOOLGADGET, (APTR)&Border2, NULL, NULL, 2, /* exclude: 00000010b second gadget in list */ NULL, 1, NULL }; struct NewWindow NewWindowStructure1 = { 106,39, 386,127, 0,1, CLOSEWINDOW, WINDOWDRAG+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, &Gadget1, NULL, "Mutual Exclude Gadget Test", NULL, NULL, 5,5, -1,-1, WBENCHSCREEN };