Page 1 of 1

SplitterGadget freeze application

Posted: Wed Sep 20, 2017 6:34 pm
by Azur
Hello, this code freeze the opened window on my linux mint, can someone confirm it does work ?
thx.

Code: Select all

win = OpenWindow(#PB_Any, 0, 0, 800, 600, "", #PB_Window_SystemMenu)
tree = ExplorerTreeGadget(#PB_Any, 0, 0, 0, 0, "./")
panel = ScrollAreaGadget(#PB_Any, 0, 0, 0, 0, 320, 320)
splitter = SplitterGadget(#PB_Any, 0, 0, 800, 600, tree, panel)
checked the install everything seems ok.

Re: SplitterGadget freeze application

Posted: Wed Sep 20, 2017 7:13 pm
by Erlend
You forgot CloseGadgetList() :-) works fine here...

Code: Select all

win = OpenWindow(#PB_Any, 0, 0, 800, 600, "", #PB_Window_SystemMenu)
tree = ExplorerTreeGadget(#PB_Any, 0, 0, 0, 0, "./")
panel = ScrollAreaGadget(#PB_Any, 0, 0, 0, 0, 320, 320)
CloseGadgetList()
splitter = SplitterGadget(#PB_Any, 0, 0, 800, 600, tree, panel)


Repeat
  event=WaitWindowEvent()
Until event=#PB_Event_CloseWindow

Re: SplitterGadget freeze application

Posted: Wed Sep 20, 2017 7:42 pm
by Azur
Yes it works, thx for the quick and helpfull answer.