LCL: Support checked menu items with associated icons. Issue #26970, patch from Andrey Zubarev.

git-svn-id: trunk@46979 -
This commit is contained in:
juha 2014-11-24 10:29:29 +00:00
parent e5665c4317
commit b79fe8fe8d

View File

@ -736,6 +736,11 @@ begin
end;
ImageRect.Right := IconSize.x;
ImageRect.Bottom := IconSize.y;
if AMenuItem.Checked then // draw checked rectangle around
begin
Tmp := ThemeServices.GetElementDetails(PopupCheckBgStates[AMenuItem.Enabled]);
ThemeDrawElement(AHDC, Tmp, CheckRect, nil);
end;
DrawMenuItemIcon(AMenuItem, AHDC, ImageRect, ASelected);
if IsRightToLeft then
SetLayout(AHDC, LAYOUT_RTL);