mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 16:52:02 +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;
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user