[Implemented] SetMinMaxWindow()
Posted: Sat May 01, 2004 5:07 pm
Hello Fred,
One command which could be useful :
SetMinMaxWindow(#Window,MinWidth.l,MinHeight.l,MaxWidth.l,MaxHeight)
This could be realized in the same way i think than the StatusBar auto resizing implemented in PB3.90
You said that now the statusbar is resized automatically inside the windowcallback. What about doing the same for minmax ?
One command which could be useful :
SetMinMaxWindow(#Window,MinWidth.l,MinHeight.l,MaxWidth.l,MaxHeight)
This could be realized in the same way i think than the StatusBar auto resizing implemented in PB3.90
You said that now the statusbar is resized automatically inside the windowcallback. What about doing the same for minmax ?
Code: Select all
OpenWindow(0,50,100,400,300,#PB_Window_SystemMenu|#PB_Window_SizeGadget,"Minimum Size")
CreateStatusBar(0,WindowID())
Procedure MyWindowCallBack(WindowID,Message,wParam,lParam)
result = #PB_ProcessPureBasicEvents
If Message=#WM_GETMINMAXINFO
*pMinMax.MINMAXINFO = lParam
*pMinMax\ptMinTrackSize\x=100
*pMinMax\ptMinTrackSize\y=300
*pMinMax\ptMaxTrackSize\x=600
*pMinMax\ptMaxTrackSize\y=300
result = 0
EndIf
ProcedureReturn result
EndProcedure
SetWindowCallback(@MyWindowCallBack())
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow