SplitterGadget freeze application

Linux specific forum
Azur
User
User
Posts: 63
Joined: Sat Jan 28, 2012 11:13 am

SplitterGadget freeze application

Post 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.
User avatar
Erlend
Enthusiast
Enthusiast
Posts: 102
Joined: Mon Apr 19, 2004 8:22 pm
Location: NORWAY

Re: SplitterGadget freeze application

Post 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
Azur
User
User
Posts: 63
Joined: Sat Jan 28, 2012 11:13 am

Re: SplitterGadget freeze application

Post by Azur »

Yes it works, thx for the quick and helpfull answer.
Post Reply