Here is a strange one for you....
I my app, I create a menu ...
In the example below, I use a logical value to hide a menu choice if I don't want the user to have access to it ... so far so good.
Code: Select all
function BuildMenu()
MENU oMenu
MENUITEM "Exit"
MENU
MENUITEM "Exit Program" Action QuitApp()
ENDMENU
MENUITEM "Help" WHEN lHelp //This is where the issue is
MENU
MENUITEM "View Help File" ACTION ViewHelp()
ENDMENU
ENDMENU
return oMenu
Now here is the strange part.....
Lets say lHelp := .t.
If I do a oMenu:Disable() only the menu items that do NOT have the WHEN clause will be disabled.
Why does this happen?
Thanks,
Jeff