Free all gadgets
Posted: Tue Jul 29, 2025 1:37 pm
I was writing a test program where I open a window, add some gadgets, later clear all the gadgets from the window and add others...
I can remove gadgets one at a time if I keep lists of all gadget numbers manually. But this also worked to remove them all:
...great! except it also broke the debugger window, apparently it also removed its gadgets also! (sb 3.02 on Win 10)
I can remove gadgets one at a time if I keep lists of all gadget numbers manually. But this also worked to remove them all:
Code: Select all
FreeGadget(#PB_All)