Hi,
Running VFP 9.0, trying add a menu to my application. I have created the
menu, added three pull down items, File, Reports and Help. In the File menu
I put a Close option to exit the application. Here's the setup:
Prompt: \<File
Result: Submenu
Options:
Key Label: ALT+F
Key Text: ALT+F
Container: Left
Object: None
Pad Name: File
Menu Level: File
Prompt: \<Close
Result: Bar# _mfi_quit
Options:
Key Label: CTRL+F4
Key Text: CTRL+F4
Skip For: .F. (I tried leaving this blank originally, same result either
way.)
Resource: _mfi_close (I tried _mfi_exit too, didn't work either.)
Also, in the general options for the menu I turned on Top-Level Form.
In the Init() of my form I have: DO menus\mainmenu.mpr WITH THIS, .F.
(Tried .T. too)
Form.ShowWindow = 2 - As Top-Level Form.
When I run my application the menu appears like I expected except the Close
option is greyed out. I can't seem to find any property settings to adjust
this, any ideas? Is this the default state of a menu option and do I have
to control that in code somehow at run time?
All I'm trying to do at this point is be able to exit the application. The
other thing I want to do is include an About item in the Help menu, what's
the best way to do this and be able to display the version number of my
application, not just the version of VFP? Beyond that I'll want to add some
items for reports but I suspect those will be easy once I understand these
first issues better.
Thanks in advance,
Linn