mjw@f.gp.cs.cmu.edu (Michael Witbrock) (09/29/88)
How do I unselect a TOGGLESELECT gadget under program control? Reseting the SELECTED and refreshing the gadgets causes my machine to crash and burn. I've bypassed the problem by rendering the gadget imagery myself, but this is a lot of work I don't think that I should have had to go to. Since I'm here (I know this part of my msg is sort of inappropriate) Does anyone know why TAGBBS crashes my (1meg, A2090+65M HD) 2000 everytime I try to run 'generate' on it? MIchael -- Michael.Witbrock@cs.cmu.edu mjw@cs.cmu.edu \ US Mail: Michael Witbrock/ Dept of Computer Science \ Carnegie Mellon University/ Pittsburgh PA 15213/ USA /\ Telephone : (412) 268 3621 [Office] (412) 441 1724 [Home] / \
tas@mtuxo.att.com (XMPC2-T.SKROBALA) (10/02/88)
> > How do I unselect a TOGGLESELECT gadget under program control? > > Reseting the SELECTED and refreshing the gadgets causes my machine > to crash and burn. I've bypassed the problem by rendering the gadget imagery > myself, but this is a lot of work I don't think that I should have had to go > to. > Try long i ; i = RemoveGadget( window, gadget ) ; gadget.Flags &= ~SELECTED ; AddGadget( window, gadget, i ) ; /* (Or AddGList(...)) */ I think you'll thus be able to get away without doing rendering on your own (but I'm not sure if the selected/deselected images are of different sizes: at worst you'll have to clear an area the size of the larger image before you call AddGadget()). Tom Skrobala AT&T Bell Laboratories mtuxo!tas