[comp.sys.amiga] Passivating string gadgets?

JMARIN@FINKUO.BITNET (04/09/89)

About string gadgets:

It is nice to be able to activate a string gadget using the
ActivateGadget() function.  Does anybody know (yep, that was
a joke) how to passivate string gadgets?
This is what my program does:
1) OpenWindow()
2) AddGadget()
3) ActivateGadget()
4) ...
5) RemGadget()
6) CloseWindow()

Now, if the string gadget was active when the window was closed
NONE of the other windows becomes active.  Even if I click the
left mouse button in my CLI window NO window becomes active.
Is this a bug of Intuition?  How can I passivate a string gadget
before RemGadget() and CloseWindow()?

Thanks for any help,

Jukka Marin
jmarin@finkuo.bitnet