[Lazarus] Form Height with Windows XP Themes

Zaher Dirkey parmaja at gmail.com
Thu Apr 8 00:28:00 CEST 2010


Use GetWindowRect to get the window size from out
Use GetClientRect to get the inner rect that can draw in it.
the deffrent between the 2 of rect is depend on the theme you are use,
But you must notice the ClientRect is always has Left, Top = 0; so try to
offset the WindowRect to 0, 0

On Wed, Apr 7, 2010 at 8:24 PM, Faber <faber.cpu at gmail.com> wrote:

> > Hi,
> >
> > Form1.ClientHeight, Form1.ClientWidth not a good solution for you?
> >
>
> form1.ClientHeight is smaller then form1.Height, in my case 538 vs. 557
> (19px)
>
> regards
> faber
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20100408/86ff9143/attachment-0004.html>


More information about the Lazarus mailing list