eraps2@aspvax.UUCP (03/23/88)
Hello Again, I am having some trouble with string gadgets. How can I modify their contents after they have been initialized? The Prop gadget has a ModifyProp() function, but there is corresponding function for string gadgets. I was just changing them, but I get an odd symptom which I (perhaps incorrectly) attribute to this. The cursor doesn't always go away after I press return in a string gadget. The gadget returns the value to the IDCMP and becomes inactive, but the cursor just stays there. Any ideas? Another requestor question: I set the REQSET flag in the window but never received that message when I opened my requestor (I want to auto activate a string gadget when it appears, I used ActivateGadget() [after checking that I had v1.2] but the gadget does not activate, so I thought perhaps I needed to delay a bit -- thus I tried the flag). Thanks for any help, "You and I are scientists professor, Rob Ginn we buy our right to experiment at ...burdvax!jtids!aspvax!eraps2 the cost of total responsibility" ...sun!liberty!drexel!aspvax!eraps2 -- The Doctor eraps1@nadc.arpa
peter@nuchat.UUCP (Peter da Silva) (03/27/88)
Well, I actually don't bother keeping the gadget in the same place, and I just do a refreshgadgets because I don't want to fry under 1.1, but here is a guaranteed safe way to modify a string gadget: g = RemoveGadget(winptr, gadget); ... /* diddle with the gadget */ ... AddGadget(winptr, gadget, g); RefreshGList(gadget, winptr, NULL, 1); -- -- a clone of Peter (have you hugged your wolf today) da Silva `-_-' -- normally ...!hoptoad!academ!uhnix1!sugar!peter U -- Disclaimer: These aren't mere opinions... these are *values*.