Re: [Lazarus] KOL-CE How was overlapping menu fixed?

2008-12-05 Thread Felipe Monteiro de Carvalho
Thanks, I managed to get it working.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] KOL-CE How was overlapping menu fixed?

2008-12-04 Thread Felipe Monteiro de Carvalho
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.

thanks,
-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] KOL-CE How was overlapping menu fixed?

2008-12-04 Thread Yury Sidorov
From: Felipe Monteiro de Carvalho 
[EMAIL PROTECTED]
 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.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus