[Lazarus] non-sensical window repositioning

zeljko zeljko at holobit.net
Fri Jun 24 22:13:54 CEST 2011


On Friday 24 of June 2011 14:57:15 Felipe Monteiro de Carvalho wrote:
> 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.

Qt supports fullscreen window state ... don't know for others. I guess that 
it's not hard task to implement it for other X11 widgetsets ... but don't know 
for win32 and carbon.

zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110624/5d0bf0be/attachment-0003.html>


More information about the Lazarus mailing list