Hi,
it seems that applying the #PB_Window_Borderless flag does not reduce the size of the window at all. In this way the height parameter for OpenWindow() is somewhat misleading as the specified height is being inflated as if there is a window title etc. This is certainly a discrepancy when compared to the behaviour under Windows in which the given height always equates to the height of the client area. It would be great if this could be changed.
Code: Select all
If OpenWindow(0, 0, 40, 220, 200, "ButtonGadgets", #PB_Window_BorderLess)
ButtonGadget(0, 10, 0, 120, 200, "Standard Button")
OpenWindow(1, 300, 40, 220, 200, "ButtonGadgets", 0)
ButtonGadget(1, 10, 0, 120, 200, "Standard Button")
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf

