Lazarus

Miscellaneous => Suggestions => LCL => Topic started by: Leledumbo on May 19, 2009, 08:24:11 am

Title: Fullscreen support
Post by: Leledumbo on May 19, 2009, 08:24:11 am
Has it been added to LCL? I know every platform (or better, widgetset) handles it differently, but it shouldn't stop us from implementing. I know at least WinAPI and QT have that capability (don't know about GTK, Carbon, Cocoa, or fpGUI).
Title: Re: Fullscreen support
Post by: rrivett on August 26, 2011, 06:26:51 pm
I notice this was never answered. Is there any status on adding full screen support to the LCL? Is it even planned?

Thanks.
Title: Re: Fullscreen support
Post by: Blaazen on August 26, 2011, 07:14:42 pm
In Lazarus trunk (SVN) is new possibility in WindowState.
Now you can do:
Quote
WindowState:=wsFullScreen;
or you can choose it in OI.

I tested with Qt4 now. It works well.
Title: Re: Fullscreen support
Post by: rrivett on August 26, 2011, 07:31:05 pm
Thank you. That is excellent news.  8)
Title: Re: Fullscreen support
Post by: garlar27 on August 26, 2011, 07:58:01 pm
I don't know if being FULLSCREEN is something different than a maximized window with no border nor system icons.

I made a fullscreen window by maximizing it and eliminating the borders and the system icons.

Code: [Select]
BorderIcons := [];
WindowState := wsMaximized;
BorderStyle :=bsNone;
Title: Re: Fullscreen support
Post by: rrivett on August 26, 2011, 08:08:35 pm
Full screen means the app covers the entire desktop. When leaving full screen mode, the desktop is restored.  Try F11 on most browsers for an example of what it must do.

Your code does not provide a full screen display, at least not on my Xfce Linux desktop. Desktop panels still show at the bottom and right side of my app.


Title: Re: Fullscreen support
Post by: felipemdc on August 26, 2011, 10:11:50 pm
I don't know if being FULLSCREEN is something different than a maximized window with no border nor system icons.

I made a fullscreen window by maximizing it and eliminating the borders and the system icons.

wsFullscreen was introduced for a reason, that reason being that fullscreen cannot be emulated the way you said, because it still will show the bottom and eventually upper bars of the operating system. There is another possible hack: Have a huge stay on top window: It may work in windows or in some linux window managers, but it is not guaranteed to work in all platforms supported by Lazarus. This hack did not work in my KDE 4 because the window manager unilaterally decided to resize windows it considered too big and that's when I introduced wsFullscreen. It is a specific call to make the app fullscreen, which will do whatever is required in the target platform, not just a very big window.
Title: Re: Fullscreen support
Post by: garlar27 on August 29, 2011, 01:35:21 pm
I forgot to say that it worked on XP and Ubuntu 9.10 where I use it.
TinyPortal © 2005-2018