Recent

Author Topic: About "Lazarus Form System Size"...  (Read 6386 times)

OnixJr

  • Full Member
  • ***
  • Posts: 172
    • http://www.brlazarus.kit.net
About "Lazarus Form System Size"...
« on: April 14, 2006, 06:19:05 pm »
I noted which lazarus forms are "bigger" from what delphi forms...

My comparison (image hosted in Geocities Brazil):

(http://br.geocities.com/hipernetjr/images/sizesystem.gif)

This is a problem, in some cases as in utilisation of WINAPI
In simple code as:

SetWindowPos(Self.Handle,hwnd_TopMost,0,0,Self.Width,Self.Height,0);

the form will be smaller (-8 and -27 pixels)...

I can solve with
SetWindowPos(Self.Handle,hwnd_TopMost,0,0,Self.Width+8,Self.Height+27,0);
or
SetWindowPos(Self.Handle,hwnd_TopMost,0,0,Self.Width,Self.Height,swp_noSize or swp_noMove);

but my question is: This is a bug or "lazarus exclusive feature"???
Portal Lazarus Brasil - http://lazaruspascal.codigolivre.org.br/portal.php
Lazarus BOOK (in portuguese) - http://lazarus-book.blogspot.com
<hipernetjr@yahoo.com.br> - Curitiba/Brazil

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: About "Lazarus Form System Size"...
« Reply #1 on: April 14, 2006, 07:41:45 pm »
Quote from: "OnixJr"
but my question is: This is a bug or "lazarus exclusive feature"???


A necessity.

It is impossible to determine reliably the size of the caption bar on Linux (due to window manager differences), so the size must not take that into account. This is why the forms are slightly bigger.

If we fix that for Windows then the same form will look differently on Windows and Linux.

A slight difference to Delphi is preferable then having the app look differently on the various platforms Lazarus supports.

OnixJr

  • Full Member
  • ***
  • Posts: 172
    • http://www.brlazarus.kit.net
RE: Re: About "Lazarus Form System Size"...
« Reply #2 on: April 14, 2006, 10:10:48 pm »
hum, interesting... I don't have thinked about this...
Thanks for reply...
Portal Lazarus Brasil - http://lazaruspascal.codigolivre.org.br/portal.php
Lazarus BOOK (in portuguese) - http://lazarus-book.blogspot.com
<hipernetjr@yahoo.com.br> - Curitiba/Brazil

 

TinyPortal © 2005-2018