[lazarus] forms maximizing

2006-02-16 Thread Pēteris Bērzs-Bērziņš
Hi maybe some one can help me with advice.
I wana make my main form like Delphi, Lazarus. On top on the screen, but on 
maximizing it goes under start bar witch is on top.
See attached file.

I think that this way worked in Delphi.

Thnks in adance
PBB

P.S. Btw, ill been long time waiting to get my hands on something like lazarus 
:)


lazarus.gif
Description: lazarus.gif


Re: [lazarus] forms maximizing

2006-02-16 Thread A.J. Venter
On Thursday 16 February 2006 11:42, Pēteris Bērzs-Bērziņš wrote:
 Hi maybe some one can help me with advice.
 I wana make my main form like Delphi, Lazarus. On top on the screen, but on
 maximizing it goes under start bar witch is on top. See attached file.
Strange, I have programs which does this (see olpack´s tscreensize component 
on silentcoder.co.za) and this has never happened with them. I would guess it
´s the window manager that is responsible for it, I know that under KDE it 
won´t go behind or over the taskbar but will just stop dead against it. 

Unless you are trying to go for fullscreen mode which I am pretty sure will 
require a call to gtk_wm_hint  stopping against the taskbar has always been 
how I defined maximized.
Mind you it may be possible to use a wm_hint call in your oncreate event to 
tell the window manager to maximise it for you ?

A.J.
-- 
80% Of a hardware engineer's job is application of the uncertainty principle.
80% of a software engineer's job is pretending this isn't so.
A.J. Venter
Chief Software Architect
OpenLab International
http://www.getopenlab.com   | +27 82 726 5103 (South Africa)
http://www.silentcoder.co.za| +55 118 162 2079 (Brazil)

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] forms maximizing

2006-02-16 Thread Pēteris Bērzs-Bērziņš
Sore forget to mention that its on Win32. 

-Original Message-
From: A.J. Venter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 11:44 AM
To: lazarus@miraclec.com
Subject: Re: [lazarus] forms maximizing

On Thursday 16 February 2006 11:42, Pēteris Bērzs-Bērziņš wrote:
 Hi maybe some one can help me with advice.
 I wana make my main form like Delphi, Lazarus. On top on the screen, 
 but on maximizing it goes under start bar witch is on top. See attached file.
Strange, I have programs which does this (see olpack´s tscreensize component on 
silentcoder.co.za) and this has never happened with them. I would guess it ´s 
the window manager that is responsible for it, I know that under KDE it won´t 
go behind or over the taskbar but will just stop dead against it. 

Unless you are trying to go for fullscreen mode which I am pretty sure will 
require a call to gtk_wm_hint  stopping against the taskbar has always been how 
I defined maximized.
Mind you it may be possible to use a wm_hint call in your oncreate event to 
tell the window manager to maximise it for you ?

A.J.
--
80% Of a hardware engineer's job is application of the uncertainty principle.
80% of a software engineer's job is pretending this isn't so.
A.J. Venter
Chief Software Architect
OpenLab International
http://www.getopenlab.com   | +27 82 726 5103 (South Africa)
http://www.silentcoder.co.za| +55 118 162 2079 (Brazil)

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives