Resizing works fine.
When I open a second window, close it again, the resize callback doesn't work anymore.
What could be wrong ?
Code: Select all
Procedure ResizeCallback(Window, Message, wParam, lParam)
result = #PB_ProcessPureBasicEvents
If Message = #WM_SIZE
Select Window
Case WindowID(#MainWindow)
ResizeGadget(#Splitter, -1, -1, WindowWidth()-10, WindowHeight()-80)
UpdateStatusBar(#StatusBar_0)
SendMessage_(hToolbar, #TB_AUTOSIZE, 0, 0)
EndSelect
EndIf
ProcedureReturn result
EndProcedure