Anonymous's picture

Maximize Gamewindow with hidden border

Project:The Open Toolkit library
Category:bug report
Assigned:the Fiddler

When I use hidden borders on a gamewindow, and choose to maximize the window the borders become visible again. If the borders are hidden again, the window is not maximized anymore.

Workaround is to after maximizing, and again hiding the borders, call this.ClientSize = this.Boundary.Size. Then the client area will fill as though it was maximized.

Such is life on Windows Xp.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture


Assigned to:Anonymous» the Fiddler
Status:open» confirmed

Confirmed. Also occurs on Windows 7.

the Fiddler's picture


Status:confirmed» in progress

Actually, this is a feature rather than a bug. If you try to maximize a borderless window (WS_POPUP style), Windows will make it enter fullscreen mode...

The suggested workaround is to resize the window manually, so that it covers the whole working an area (i.e. the screen without the taskbar). This is easy to achieve when you only have a single monitor (GetMonitorInfo), but I don't know how to implement this correctly with multiple monitors, yet.

Any ideas?

the Fiddler's picture


Version:0.9.9-1» 0.9.x-dev
Status:in progress» fixed

Issue fixed in rev. 2342. WindowState changes should be much more robust now.

the Fiddler's picture


Version:0.9.x-dev» 0.9.9-3
Status:fixed» closed

Closing issues fixed in 0.9.9-3.