On Fri, 24 Jun 2011 13:49:59 +0200
Felipe Monteiro de Carvalho <[email protected]> wrote:

> Hello,
> 
> I just found a problem with lcl-gtk2 that I haven't ever seen before.
> Consider this code:
> 
> begin
>   Application.Initialize;
>   Application.CreateForm(TForm1, Form1);
>   Form1.Left := 0;
>   Form1.Top := 0;
>   Form1.Width := 1680;
>   Form1.Height := 1050;
>   Application.Run;
> end.
> 
> This represents the following position: Window Pos: 0 0 1680 1050
> which covers the entire screen

For full screen see here:
http://wiki.lazarus.freepascal.org/Application_full_screen_mode

 
> Upon calling Form1.Show I get this instead: Window Pos: 560 0 1120 676
> 
> Which means that the position of my form was modified to something
> non-sensical and different from my command.
> 
> Does anyone know if gtk2 is doing this wierd repositioning or if
> LCL-Gtk2 is doing it? Maybe some kind of sanity check going wrong =O

Some window managers do that.

 
> The same code works fine in Windows. Basically this prevents the
> Virtual Magnifying Glass from working correctly.


Mattias

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to