Recent

Author Topic: Fullscreen support  (Read 11590 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Fullscreen support
« 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).

rrivett

  • Guest
Re: Fullscreen support
« Reply #1 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.

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: Fullscreen support
« Reply #2 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.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

rrivett

  • Guest
Re: Fullscreen support
« Reply #3 on: August 26, 2011, 07:31:05 pm »
Thank you. That is excellent news.  8)

garlar27

  • Hero Member
  • *****
  • Posts: 652
Re: Fullscreen support
« Reply #4 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;

rrivett

  • Guest
Re: Fullscreen support
« Reply #5 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.


« Last Edit: August 26, 2011, 08:11:27 pm by rrivett »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Fullscreen support
« Reply #6 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.
« Last Edit: August 27, 2011, 07:09:34 am by felipemdc »

garlar27

  • Hero Member
  • *****
  • Posts: 652
Re: Fullscreen support
« Reply #7 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