Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Use Menu On Main Form PART #2

Status
Not open for further replies.

drosenkranz

Programmer
Sep 13, 2000
360
US
My main form is run as a top level form- modeless. I have added the line "SET SYSMENU AUTOMATIC" to my program but to no avail. My menu was created entirely using the designer and the preview looks ok.

1) Why won't my menu display on my form?

2) How do you produce the "dividing lines" between the items in each leg of the menu?

Thanks for the help and have a great New Year :)
 
1) Make sure you check the Top Level Form option under View -> General Options ... when you have the menu designer open.

2) In a SubMenu, type \- in for the Prompt, and choose Bar # for the Result.

Rick
 
Hi,

If you want to add a menu to a form iso using the menu in the main VFP form you should do the follwing:

F.i. your generated menu file is called:

mymenu.mpr

Place in the Init() event of the form the following:

LOCAL llRetVal

llRetVal = DODEFAULT()

IF llRetval
DO mymenu.mpr WITH THIS
ENDIF

RETURN llRetVal

Weedz
veld4663@exact.nl

'It never hurts to help...' - Eek the cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top