mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 19:52:26 +02:00
LCL/Menu: Do not draw mouse-over menu items with effect gdeHighlighted on Windows. Issue #40092.
(cherry picked from commit 45e80c9d97
)
This commit is contained in:
parent
35d60a2bb6
commit
153f8b932c
@ -1166,13 +1166,10 @@ begin
|
|||||||
AImageIndex := AMenuItem.ImageIndex;
|
AImageIndex := AMenuItem.ImageIndex;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if not AMenuItem.Enabled then
|
if AMenuItem.Enabled then
|
||||||
AEffect := gdeDisabled
|
AEffect := gdeNormal
|
||||||
else
|
else
|
||||||
if ASelected then
|
AEffect := gdeDisabled;
|
||||||
AEffect := gdeHighlighted
|
|
||||||
else
|
|
||||||
AEffect := gdeNormal;
|
|
||||||
|
|
||||||
if AImageIndex < AImageList.Count then
|
if AImageIndex < AImageList.Count then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user