[Lazarus] lNet no TCP.OnDisconnect at TCP.Disconnect?

Eugen Bolz info at eugen-bolz.de
Thu Dec 4 21:55:23 CET 2008


From: "Felipe Monteiro de Carvalho" 
<felipemonteiro.carvalho at gmail.com>
> Hello Yuri,
>
> How did you implement maximizing a form in KOL-CE?
>
> Take a look here:
>
> http://wiki.lazarus.freepascal.org/Windows_CE_Development_Notes#Overlapping_menu_bottom
>
> I have looked a lot, but it seams impossible to maximize a form
> perfectly in Windows CE, because sometimes the menu will not be
> considered part of the work area so you need an extra factor, but I
> have found no way to find when the factor is needed.

You can get bounding rect of menu bar using its handle. It is hwndMB 
member of SHMENUBARINFO structure.
After that you can adjust form's height if it overlaps the menubar.

Yury.



More information about the Lazarus mailing list