But somehow, now the height of the window doesn't take the taskbar into account when maximized?
Shouldn't #PB_Default make sure, that the systems default behaviour will be used?
Code: Select all
OpenWindow(0, 0, 0, 600, 800, "Maximize me", #PB_Window_SizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SystemMenu)
CreateStatusBar(0, WindowID(0)) ;Add Statusbar to see the bottom part of the window
AddStatusBarField(400)
StatusBarText(0, 0, "BLA")
WindowBounds(0, #PB_Ignore, #PB_Ignore, 1000, #PB_Default)
;Maximize it, and the statusbar will be hidden behind the taskbar (in case your taskbar is located at the bottom)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow