Page 1 of 1

2.21B : PanelGadget - Previous GadgetList not restored

Posted: Thu Dec 06, 2018 10:49 am
by Niffo
Previous GadgetList is not automatically restored when adding a gadget item to a PanelGadget.

OpenWindow(0, 100, 100, 300, 300, "PanelGadget Test")
PanelGadget(0, 10,10, 280, 30)
AddGadgetItem(0, -1, "Item 1")
CloseGadgetList()

ButtonGadget(1, 50, 50, 50, 50, "Button 1")

OpenGadgetList(0)
AddGadgetItem(0, -1, "Item 2")
CloseGadgetList()

;UseGadgetList(WindowID(0))
ButtonGadget(2, 120, 120, 50, 50, "Button 2")

CompilerIf #PB_Compiler_OS <> #PB_OS_Web : Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow : CompilerEndIf