View Issue Details

IDProjectCategoryView StatusLast Update
0001643OpenMPTUser Interfacepublic2022-12-10 09:57
Reporterc0d3h4x0r Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx64OSWindowsOS Version11
Product VersionOpenMPT 1.31.00.* (old testing) 
Summary0001643: Menu item selection (highlighting) disappears when navigating the menus using arrow keys
Description

Works fine if you use the mouse, but if you use the keyboard, it repros.

Steps To Reproduce
  1. Launch OpenMPT
  2. Hit ALT+F to invoke File menu
  3. Press right arrow key to expand the "New" menu
  4. Press down arrow key once (to try to move selection down to the next possible new file type)

EXPECT: Selection rect (item highlighting) moves down to the next menu item

ACTUAL: Selection rect (item highlighting) disappears. I can no longer see what I'm doing as I continue to navigate the menu via the arrow keys.

TagsNo tags attached.
Has the bug occurred in previous versions?
Tested code revision (in case you know it)

Activities

Saga Musix

Saga Musix

2022-12-04 14:14

administrator   ~0005408

Cannot reproduce that. As you can probably imagine, we don't do any sort of owner-draw custominzation on the menus or whatever, so I would hazard a guess that this is caused by third-party software or drivers.

c0d3h4x0r

c0d3h4x0r

2022-12-08 02:41

reporter   ~0005410

I just recently upgraded to Windows 11. I'll try reinstalling my video driver from scratch and report back.

c0d3h4x0r

c0d3h4x0r

2022-12-08 04:49

reporter   ~0005411

Still repros even with the latest nVidia driver for Windows 11. And OpenMPT is the only app this happens with. This is either an OpenMPT bug, or a bug in the version of MFC that OpenMPT is using.

Saga Musix

Saga Musix

2022-12-08 18:32

administrator   ~0005412

Here's what I see in a Windows 11 VM (both with VirtualBox 3D acceleration enabled and disabled).

As said, we don't owner-draw any menus. Neither OpenMPT nor MFC should be involved with any of the menu drawing, just the DefWindowProc. What apps did you compare this against? Many apps use owner-drawn menus these days (in particular Firefox / Chrome / Edge / etc. don't use native menus). Notepad might be a good comparison (View -> Zoom has a sub menu). If Windows 11 still has the possibility of lowering hardware acceleration level for graphics as older versions did, that might also be an interesting thing to try because drivers trying to (incorrectly) optimize GDI drawing routines isn't something that would be unheard of.

win11.png (8,893 bytes)   
win11.png (8,893 bytes)   
manx

manx

2022-12-09 12:23

administrator   ~0005415

random idea: Do you have any OpenMPT keyboard shortcuts configured for any of the keys you are using to navigate the menus (in that case, the root cause may be related to 0000713 )?

c0d3h4x0r

c0d3h4x0r

2022-12-10 09:47

reporter   ~0005418

The problem is not caused by my video driver, my Windows DPI/scaling settings, or anything else I can pin down. It only happens in OpenMPT, not any other apps. Here's what it looks like on my end. Again, this is with Windows 11 (Professional, Intel x64), and the same build of the same app didn't exhibit this problem on Windows 10 before I upgraded to Windows 11. This appears to be a Windows 11-specific issue.

openmpt_badmenuitem_win11.jpg (53,994 bytes)   
openmpt_badmenuitem_win11.jpg (53,994 bytes)   
c0d3h4x0r

c0d3h4x0r

2022-12-10 09:57

reporter   ~0005419

Okay, it looks like this might have something to do with the Windows theme settings. I use a Microsoft account to sign into Windows, and it has a custom theme that syncs down from my Microsoft account regardless of which PC I sign in on. Apparently that custom theme doesn't play well with OpenMPT on Windows 11. When I switch to one of the default/built-in Windows themes, this is what I see instead.

openmpt_builtin_theme.jpg (86,461 bytes)   
openmpt_builtin_theme.jpg (86,461 bytes)   

Issue History

Date Modified Username Field Change
2022-12-04 03:43 c0d3h4x0r New Issue
2022-12-04 14:14 Saga Musix Note Added: 0005408
2022-12-08 02:41 c0d3h4x0r Note Added: 0005410
2022-12-08 04:49 c0d3h4x0r Note Added: 0005411
2022-12-08 18:32 Saga Musix Note Added: 0005412
2022-12-08 18:32 Saga Musix File Added: win11.png
2022-12-09 12:23 manx Note Added: 0005415
2022-12-10 09:47 c0d3h4x0r Note Added: 0005418
2022-12-10 09:47 c0d3h4x0r File Added: openmpt_badmenuitem_win11.jpg
2022-12-10 09:57 c0d3h4x0r Note Added: 0005419
2022-12-10 09:57 c0d3h4x0r File Added: openmpt_builtin_theme.jpg