mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 23:00:27 +02:00
LCL: Support checked menu items with associated icons. Issue #26970, patch from Andrey Zubarev.
git-svn-id: trunk@46979 -
This commit is contained in:
parent
e5665c4317
commit
b79fe8fe8d
@ -736,6 +736,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
ImageRect.Right := IconSize.x;
|
ImageRect.Right := IconSize.x;
|
||||||
ImageRect.Bottom := IconSize.y;
|
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);
|
DrawMenuItemIcon(AMenuItem, AHDC, ImageRect, ASelected);
|
||||||
if IsRightToLeft then
|
if IsRightToLeft then
|
||||||
SetLayout(AHDC, LAYOUT_RTL);
|
SetLayout(AHDC, LAYOUT_RTL);
|
||||||
|
Loading…
Reference in New Issue
Block a user