Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Menu Show Delay Time

24 May 2011   #30

Windows 7 Ultimate

The registry entry MenuShowDelay works very strangely under the MFC Feature Pack. The value is used for menu closure delay:
We saw on some machines where our application is installed (obviously using Feature Pack) that sub menus are not closing. let's say in a drop down I have 2 entries which are sub menus (S1 and S2) and 10 other (lead menus (M1, M2... M10). When I opened the drop down and the cursor was placed on S1 , the corresponding sub menu is displayed. Now I moved the cursor to a leaf menu (M1..M10) and the sub menu is no closed. When I moved to S2, the submenu display is changed accordingly. But again, moving to a leaf leaves the sub menu open
We saw that this behavior occurs when the MenuShowDelay registry key (at HKEY_CURRENT_USER\Control Panel\Desktop) value is zero.
I am not sure how the value got the value. In any case, the value should be used for menu showing delay and not for menu hiding delay. So it seems Feature Pack hooked on a registry key used for something else.

Any ideas?
Thanks in advance! blapath

My System SpecsSystem Spec
24 May 2011   #31
Microsoft MVP

64-bit Windows 8.1 Enterprise

Hello Blapath, and welcome to Seven Foirums.

That is a strange issue. How does it behave if you change the MenuShowDelay value to say 3, or back to the default of 400?
My System SpecsSystem Spec
25 May 2011   #32

Windows 7 Ultimate

In general the registry key value is 400 and menu opening/hiding works normally. The problem occurs when the value is zero. In this case a sub menu opened correctly and immediately, but when i move the cursor to a leaf menu entry, the previously opened (and displayed) sub menu remains to be open. If cursor moves to another sub menu, than the new one is opened. Of course at this point this last sub menu remains open when I move to leaf entry. This opened sub menu remains open, as far as the cursor moves to other leaf entries.
I just tested the case with other values. Here is what I see: when value is small (1 or 10), sub menu appears immediately and closes immediately when cursor moves to a leaf. When value is big (5000), sub menu opens after the defined time and also closes after delay: cursor moved to a sub menu entry; wait 5 sec until sub menu opens; move to another sub menu, then the opened sub menu remains displayed and only after 5 sec the new one is displayed; move to a leaf entry then the opened sub menu remains open 5 sec before it is closed.
I think the delay is sub menu closing is a bug; at least the registry key name indicates only 'opening delay' - but at least it is consistent: the same amount of time waited for opening and for closing. In any case, it seems value zero is handled as a special case, as in this case opening is not delayed, and closing is delayed indefinitely.
I emphases: the problem occurs only for application developed with the MFC Feature Pack. I use Windows 7, the registry key currently is set to 5000 (I didn't reset my host) and menus open and close normally. I opened iTunes, SQL Server Management Studio, Notepad++, FileZilla Client - all of them behaves normally, without any delay in sub menu opening or closing. So it seems Win7 in general doesn't even look at the registry key, but Feature Pack does it (even without restarting the host).
My System SpecsSystem Spec
25 Jan 2012   #33

Windows 7/ Ubuntu

Quote   Quote: Originally Posted by emibel View Post
Just a warning about setting the delay to -1, as I suggested above, for not allowing the sub-menu to pop up until you click it. I found that it crashes Visual Basic 2010 Express whenever you click on any of the menu items. Accordingly I've now set it to a large positive value (20000 for a 20-second delay) and that avoids the problem.
Thanks for this tip emibel! This was really irritating me. I don't know whether I am a clutz or its my mouse but I can't keep the cursor on the right menu when it auto-opens sub-menus. So making it open faster was even worse. Its probably the fact that I use the mouse on my bed but your tip helped wonderfully.

Thanks again.
My System SpecsSystem Spec
28 Jan 2012   #34

Windows 7 Ultimate SP1 - 64 Bit

While reading this:


The Fade or slide menus into view and Fade out menu items after clicking Visual Effects optiond will also affect how fast menus open and close. Unchecking these options will help speed it up in addition to doing the steps in this tutorial below."
My System SpecsSystem Spec
28 Jan 2012   #35
Microsoft MVP

64-bit Windows 8.1 Enterprise

Oops, corrected. Thank you.
My System SpecsSystem Spec

 Menu Show Delay Time

Tutorial Tools

Similar help and support threads for2: Menu Show Delay Time
Windows 7 Tutorial Category
Devices and Printers Menu Delay??? General Discussion
Solved delay time problem General Discussion
Aero Peek - Change Delay Time to Preview Desktop Tutorials
Extra Long Delay In Connect Time? Network & Sharing
Windows Explorer - increase delay time when dragging&dropping General Discussion
Taskbar Thumbnail Previews - Change Delay Time Tutorials

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 20:26.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App