More String Gadget Help
09-Sep-88 12:16:43
Sb: #10623-More String Gadget Help
Fm: Ray Lambert 76077,1653
To: John Draper 76703,4322
Just to add something to that for Dan, If the string gadget that you wish to
activate is in a window which you are opening JUST BEFORE ActivateGadget() is
called, ActivateGadget() will fail. Since that Amiga is multi-tasking,
OpenWindow() may return BEFORE the window is actually added to the system list.
If this is the case when ActivateGadget() is called, AG will think the window
doesn't exist yet and it will fail. The solution is to place a small delay in
between OpenWindow() and ActivateGadget(). eg. Delay(10)