mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 14:20:41 +02:00
- main menu bar was a bit wide
git-svn-id: trunk@12908 -
This commit is contained in:
parent
f6cf2dcbf9
commit
cc2180a5b0
@ -203,8 +203,7 @@ var
|
||||
AnsiBuffer: ansistring;
|
||||
WideBuffer: widestring;
|
||||
begin
|
||||
tmpRect.right := 0;
|
||||
tmpRect.left := 0;
|
||||
FillChar(tmpRect, SizeOf(tmpRect), 0);
|
||||
newFont := getMenuItemFont(aDecoration);
|
||||
oldFont := SelectObject(aHDC, newFont);
|
||||
{$ifdef WindowsUnicodeSupport}
|
||||
@ -335,11 +334,13 @@ begin
|
||||
inc(Result.cx, LeftCaptionPosition(aMenuItem));
|
||||
|
||||
if not aMenuItem.IsInMenuBar then
|
||||
inc(Result.cx, SpaceBetweenIcons);
|
||||
inc(Result.cx, SpaceBetweenIcons)
|
||||
else
|
||||
dec(Result.cx, SpaceBetweenIcons);
|
||||
|
||||
if aMenuItem.ShortCut <> scNone then
|
||||
if (aMenuItem.ShortCut <> scNone) then
|
||||
Inc(Result.cx, spaceBetweenIcons);
|
||||
|
||||
|
||||
minimumHeight := GetSystemMetrics(SM_CYMENU);
|
||||
if not aMenuItem.IsInMenuBar then
|
||||
Dec(minimumHeight, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user