mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 15:10:22 +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;
|
||||
end;
|
||||
|
||||
if not AMenuItem.Enabled then
|
||||
AEffect := gdeDisabled
|
||||
if AMenuItem.Enabled then
|
||||
AEffect := gdeNormal
|
||||
else
|
||||
if ASelected then
|
||||
AEffect := gdeHighlighted
|
||||
else
|
||||
AEffect := gdeNormal;
|
||||
AEffect := gdeDisabled;
|
||||
|
||||
if AImageIndex < AImageList.Count then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user