i have a problem with the FreeGadget() procedure. If i free a gadget i can't recreate it. Is that a bug or intended?
Code: Select all
OpenWindow(1, 0,0, 1000, 1000, "Title")
ScrollAreaGadget(1, 15, 60, 500, 500, 760, 360, 1, #PB_ScrollArea_Raised)
FreeGadget(1)
ScrollAreaGadget(1, 15, 60, 500, 500, 760, 360, 1, #PB_ScrollArea_Raised)
Debug IsGadget(1) ; Is 0, so the created gadget isn't there
Repeat
event = WaitWindowEvent(1)
Until event = #PB_Event_CloseWindow
EDIT2: Same happens with the containergadget