On Sun, 21 Oct 2007 17:50:39 +0200
Thomas Moritz <[EMAIL PROTECTED]> wrote:
> Am Sonntag, 21. Oktober 2007 14:10:40 schrieb Mattias Gaertner:
>
> Hello Mattias,
>
> > Let the window manager do the maximization.
>
> Sorry! At my tests, it looks that the MainForm behind the kicker.
What do you mean with 'behind the kicker'?
> A Statusbar displayed the correct size. Thanks!
>
> The MainForm must to keep this maximized size oneself.
Set Form1.WindowState:=wsMaximized. The window manager will then
maximize your application. Even if you resize the screen.
> Form1.WindowState:=wsMaximized; // OK
> Form1.BorderStyle:=bsSingle; // OK
>
> but
>
> Form1.BorderIcons:=[];
> is ignored by gdk. What can i do?
It is not ignored by gtk, but by the window manager.
For example under ubuntu linux with gtk2 all but the close button is
hidden.
> procedure TForm1.FormResize(Sender: TObject);
> begin
> Form1.WindowState:=wsMaximized;
> end;
>
> This isn't a right way, because the screen flickers.
I guess TForm1.FormResize is your OnResize event. This means, every
time the window is resized, it should maximize. If the window manager
does not allow this, this will create an endless loop.
No normal application should force maximize. Maybe you are programming
a game?
Then you might want to try the function of the unit gtkproc:
SetWindowFullScreen
GrabKeyBoardToForm
GrabMouseToForm
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives