[lazarus] implementing ShowWindow

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Feb 28 14:45:02 EST 2003


On Fri, 28 Feb 2003 07:08:20 +0800
hernan.et at pg.com wrote:

> -->  frmMain.WindowState := wsMaximized does not work.
>  Is WindowState not yet implemented? If not, can somebody point me
>  out(just a hint) on how I may help?

Changing the WindowState results under Delphi in a call to ShowWindow. I
have added the procedure headers for ShowWindow. The only thing to do is the
gtk code.
Open gtkwinapi.inc, search for '.ShowWindow'.

hWnd is a PGtkWindow, nCmdShow is one of the constants sent by
TCustomForm.SetWindowState.

Search on www.gtk.org and google how to maximize, minimize, restore a
gtkwindow.

I hope, this helps,
Mattias






More information about the Lazarus mailing list