mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 19:29:25 +02:00
LCL/Menu: Do not draw mouse-over menu items with effect gdeHighlighted on Windows. Issue #40092.
This commit is contained in:
parent
408f319004
commit
45e80c9d97
@ -1212,13 +1212,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