Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!decvax!mcnc!gatech!gtss!chas From: chas@gtss.UUCP (Charles Cleveland) Newsgroups: comp.sys.amiga Subject: Re: String Gadgets resolved Message-ID: <195@gtss.UUCP> Date: 18 Dec 87 19:17:56 GMT References: <1972@amiga.amiga.UUCP> <2030@navajo.UUCP> Reply-To: chas@gtss.UUCP (Charles Cleveland) Organization: Georgia Tech School of Physics Lines: 25 In article <2030@navajo.UUCP> ali@navajo.stanford.edu (Ali Ozer) writes: :-( :-( :-( case GADGETUP: :-( ... :-( case STR_ID: :-( sscanf (buffer, "%d", &val); /* read out the string buffer */ :-( val = val%16; /* adjust value to correct range */ :-( sprintf (buffer, "%d", val); /* update gadget */ :-( RefreshGList (&strgad, win, req, 1L); :-( break; :-( ... :-( I once did something somewhat similar and didn't have any problems. There are enough differences so that I'm unsure my experience applies though. Like a good little scout, I was careful to use Remove/AddGadget() around the places where I was making changes in the gadget and you don't seem to have included that in your example code. A possibility? -- -Life would be so much easier if we could just look at the source code.- Charles Cleveland Georgia Tech School of Physics Atlanta, GA 30332 UUCP: ...!gatech!gtss!chas INTERNET: chas@ss.physics.gatech.edu