Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-12

KOL-CE How was overlapping menu fixed?

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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

Reply by email

Yury Sidorov
to Felipe Monteiro de Carvalho

From: "Felipe Monteiro de Carvalho"

Show quoted text 12 lines
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.

Reply by email