And it's been so long, I may be off base on this. But, I'm trying to throw something at your odd problem. ;)
Main Topics
Browse All TopicsHI. I created a menu bar (new experience) with a number of drop-down menus, some menu items (in the drop-down menu) having sub-menus. This has been working well for the last 3 months. But now, the sub-menus no longer appear when the mouse cursor is moved to a menu item (in the drop-down menu) which has a sub-menu, unless I explicitely click the menu item; then the sub-manu appears.
I've not modified the menus for some time, nor can I find documentation or other clue as to why the sub-menus no longer appear when the mouse is moved to its menu item.
What do I need to do to return to "normal" operation?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I tried 'sticky' to no avail; VFP Help says the command is ignored. I've tried the application on two different computers with 2 different operating systems (2K and XP); the menus exhibit the same behaviou on both. Yet, other menus (such as VFP's) work as expected. It's like these menu items no longer recognize a "Mouse Enter" or "Mouse Move", only a "Click". I cannot find any reference to "choosing a menu item".
Something in the enviroment must have changed, but how to get back?
I had seen that same thing once in my past but iy went away after a few changes and a re-generation of the menu code. I wasn't addressing that behavior, but adding other things.
I'm wondering if you have shortcut keys assigned to those submenu items or something like that. You may have success just trying to make a slight change and that behavior might come back as you expect. It is a hard one to pin down, IMO.
I've made additions to the menu, no change. I've deleted the '.mpx', '.mpr' and regenerated; no change. I've tried creating an entirely new menu, and encountered other inexplicable behavior, but I want to try this again.
I have only one form, and it's top level. The menu is checked as 'top level'.
Does a menu bar have events like other VFP objects, i.e., "MouseEnter" and "Click" events?
Well, the cause has been discovered, although the connection not understood.
The problem was caused by a timer object which was used to do a delayed z-ordering of an image object. Once the timer was removed, the sub-menus appeared in their normal fashion. The timer was to disable itself, but due to a coding error, it did not, and continued to fire. This has no effect on the application, except for the need to click a menu bar in order to see the sub-menu. We discovered the problem by rebuilding the application piece by piece.
You were exactly right by pointing out that "It is a hard one to pin down". Thank you for taking the time to consider this problem.
Thanks.
I will have to file that info on timer interference in my brain for future reference. I personally have been loathe to use timers as I've always had the feeling they steal performance from my apps. But, there are still great uses for them. But, you have now discovered a very weird side effect that seems to make no particular sense. Now that will make me think even more about trying to avoid timers, even when I should be using them.
Business Accounts
Answer for Membership
by: CarlWarnerPosted on 2007-04-01 at 17:12:34ID: 18833775
Back in the character-based DOS apps, there was a SET command that covered that behavior. But, in Windows, it's supposed to default to one behavior where the submenus show for us. That command was unmysteriously enough "SET STICKY ON".
If you look in the documentation in Visual FoxPro, you won't find it explicitly addressed any longer. However, you will find it still mentioned in a couple of obscure places in the docs, like in the CNTBAR() function and as a command supported in the runtime library.
Just for fun, go ahead and issue a "SET STICKY ON" and see if it changes the behavior of what you are now seeing in your sub-menus. Maybe there is some odd bug that assumes a "SET STICKY OFF" for your sub-menu configuration.
No guarantees though...