Until the bug gets fixed, how about just putting all the gadgets into a TList?
Untested:
Untested:
Local GadgetList:TList = CreateList() Local Window:TGadget = CreateWindow("MyWindow",100,100,320,240) ListAddLast(GadgetList,Window) Local Button:TGadget = CreateButton("Ok",10,10,100,40,Window) ListAddLast(GadgetList,Button) etc... For Local ThisGadget:TGadget = Eachin GadgetList RedrawGadget ThisGadget Next