Menu events not firing (OpenInsight)
At 28 DEC 2000 02:43:16PM Steve Botes wrote:
This is a problem that I have been dealing with for a while. I finally have thrown the towel and am pleading for help. An mdi child that I start with a menu won't execute the menu items such as file -] save. However, run that same window standalone and it works fine. It is called deliveries. If I save the very same window with a name like deliveriests then the menu items all work properly. I gave in and saved the window as deliveriests. Now I have the very same problem with a window called inventory. I really don't want to rename this one also. Can anyone help me determine where to look. Of note the system monitor shows nothing when I click on the menu item when the window has been started as a child. When I do the same for a window that is stand alone I see the menu item fire. Where should I look for the break in the chain?
Thanks
At 28 DEC 2000 11:26PM WinWin/Revelation Support wrote:
When you open the child window, does its menu override the mdiframe menu, while the child shows no menu?
Any chance that you have old scripted events with a return 0 for the menu items? If these were removed by deleting the code rather than by using 'CLEAR EVENT' then you can get unexpected behavior, though system monitor should show these firing.
Did you use a style sheet to create the Child form?
Does Scan_Rep show any leftover event stuff?
Bob Carten
At 28 DEC 2000 11:36PM Steve Botes wrote:
When you open the child window, does its menu override the mdiframe menu, while the child shows no menu?
Yes, and if I save the very same window under a different name then the events fire.
Any chance that you have old scripted events with a return 0 for the menu items? If these were removed by deleting the code rather than by using 'CLEAR EVENT' then you can get unexpected behavior, though system monitor should show these firing.
This is possible. If I look, where would I look and assuming that say my event is File -] Delete from the menu on the inventory window what would I look for?
Did you use a style sheet to create the Child form?
No
Does Scan_Rep show any leftover event stuff? It has when I have run it but the problem didn't go away. I certainly can run it again.
What would help would be if you could tell me where the menu structure is stored. I then could look and compare to ones that work. One thing that I have noticed, I delete the example application by in sysreposeventexe I still see many items for the examples app.
I have worked on this for several days and have tried a lot of things.
Thanks for the response.
At 29 DEC 2000 09:19AM Steve Botes wrote:
Bob, I had a thought this morning….. If I remember correctly the two windows that are giving me this problem both started out without menus. I added the menus later. Could it be related?
At 02 JAN 2001 04:40PM WinWin/Revelation support wrote:
Hi Steve
I don't think that is the problem.
Can you do an appbackup and mail me a copy of the application and the dictionary for that window
Bob Carten