
Maximize Gamewindow with hidden border
Posted Friday, 7 August, 2009 - 18:55 by Anonymous| Project: | The Open Toolkit library |
| Version: | 0.9.9-3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | the Fiddler |
| Status: | closed |
Jump to:
Description
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.


Comments
#1
Confirmed. Also occurs on Windows 7.
#2
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?
#3
Issue fixed in rev. 2342. WindowState changes should be much more robust now.
#4
Closing issues fixed in 0.9.9-3.