GetSystemMetrics(SM_CYMENU) delivers wrong result
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
TMainMenu.Height / LCLIntf.GetSystemMetrics(SM_CYMENU) returns different result on Gtk2 and Win32.
Under Win32, it returns the height of a single-lined main menu, under Gtk2 it returns (lgsMenu+lgsMenuBar+FCachedBorderSize) which is too much (the actual menu height is smaller than the result).
Steps to reproduce:
Check the result of Menu.Height on various OS/WidgetSets. You will see a huge difference between Win32 and Gtk2.
Or see the attached project.