Problem with resizecallback procedure
Posted: Sun Oct 26, 2003 9:39 pm
I have a main window with a resize callback procedure.
Resizing works fine.
When I open a second window, close it again, the resize callback doesn't work anymore.
What could be wrong ?
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