[Lazarus] non-sensical window repositioning

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Fri Jun 24 14:57:15 CEST 2011


On Fri, Jun 24, 2011 at 2:46 PM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
> For full screen see here:
> http://wiki.lazarus.freepascal.org/Application_full_screen_mode

I think we should implement that in the LCL. What do you think about
these proposals:

1> TForm.SetFullscreen(AValue: Boolean);
2> fsFullScreen --> but then you can't combine with fsSystemStayOnTop

> Some window managers do that.

Yes, it is probably KDE which is hitting me =( I debugged and even Gtk
doesn't know about the position change, it just magically occurs some
time after show(), which indicates window manager changes.

This works fine (just smaller then the screen width):

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Form1.Left := 0;
  Form1.Top := 0;
  Form1.Width := 1673;
  Form1.Height := 1050;
  Application.Run;
end.

This fails:

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Form1.Left := 0;
  Form1.Top := 0;
  Form1.Width := 1674;
  Form1.Height := 1050;
  Application.Run;
end.



-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list