Problem Returning From wsFullScreen lazarus / 31-LCL ---------------------------------------------------------------------- Rails · 2012-03-28 13:29 I can't get apps to return from wsFullScreen properly. Switching to full screen mode works fine, but they won't switch back using any of the other WindowState := wsXXXXXX commands. I can switch between any of the other window states at will using code, but nothing works to get back from full screen except Application.Minimize. I did not find an open bug report that describes this exact situation. Any suggestions, other than filing a new bug report? Thanks. Using lazarus-0.9.31.35914-20120313 FPC 2.60.1 GTK2 Debian Linux ---------------------------------------------------------------------- tomek · 2012-03-28 13:43 http://wiki.lazarus.freepascal.org/Application_full_screen_mode ---------------------------------------------------------------------- Rails · 2012-03-28 14:05 http://wiki.lazarus.freepascal.org/Application_full_screen_mode I thought the wsFullScreen property now in the development release was supposed to make it platform independent, unlike that of the wiki entry above. The last entry in that document was in 2010, not counting the tag clean up of a few days ago. It is my understanding that it is not current for the development version. It is certainly now possible to go to full screen simply by setting .WindowState := wsFullScreen. Nothing else is required. It is just not possible to get back out, other than by Application.Minimize or Close. ---------------------------------------------------------------------- joseme · 2012-03-28 16:42 I don't have experience on Linux, but experimenting with the Android machine (Mageia Linux) it works fine. I put this code Code: [Select]if Form1.WindowState = wsMaximized then Form1.WindowState:=wsNormal else Form1.WindowState:=wsMaximized;on the click event and it maximize and restore the window. ---------------------------------------------------------------------- Rails · 2012-03-28 17:03 Maximized and full screen are two very different things. Full screen takes over the whole display area, covering the desktop completely. The window itself along with its decorations disappears and only the application is left showing. Only the development version has the full screen capability.  The regular release does not have it. The new property is Form1.WindowState := wsFullScreen. If you are unfamiliar with full screen displays, try the F11 key in almost any browser. It should toggle between full screen and whatever window setting you had before going to full screen. ---------------------------------------------------------------------- joseme · 2012-03-28 17:23 Oops, you are right, sometimes the brain is not connected with the eyes ---------------------------------------------------------------------- Rails · 2012-03-28 17:35 Happens to me a lot. -- according to my wife. ---------------------------------------------------------------------- felipemdc · 2012-03-28 18:02 Quote from: Rails on March 28, 2012, 03:29:57 pmAny suggestions, other than filing a new bug report? You could try other widgetsets. Maybe fullscreen will work in Qt. But filling the bug report is still a must do as then there is a chance that it will be fixed (without a report the change is way lower) ---------------------------------------------------------------------- zeljko · 2012-03-29 07:18 I've fixed fullscreen discrepancy in gtk2, but there's still bug in LCL with windowState since this part is too windows oriented. When WS sends SIZEFULLSCREEN (it can be maximized OR fullscreen), LCL changes it's window state to wsMaximized , so we must find the way (some LCL param or similar) which will set exact window state. ---------------------------------------------------------------------- Rails · 2012-03-29 12:25 Thanks zeljko. I did not file a bug report yet, since I wanted to try QT first as suggested by felipemdc. Unfortunately, I ran into build problems with QT which I have not been able to resolve. So I guess I will now wait until I can install an updated version of the development version once a newer set of development debs are released. I will file the bug report then if necessary.