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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

custom menu...

Status
Not open for further replies.

venado

Programmer
Nov 28, 2000
35
CA
how do you attach a custom menu to a top level form?
and how to elimanate the visual foxpro main screen?

Any suggestion!

Thanks
 
In the menu "Menu", choose general options, and check "Top-Level Form".

To hide the main Foxpro window there is a clear explanation on how to do this in the help file.

VFP 5.0: Online Documentation -> Developer's Guide -> Part 3: Creating the Interface -> Chapter 9: Creating Forms -> Hiding the Main Visual FoxPro Window

VFP 6.0: Help File -> Using Visual FoxPro -> Programmer's Guide -> (Part 3:) Creating the Interface -> (Chapter 9:) Creating Forms -> Hiding the Main Visual FoxPro Window

Rick

 
To attach a menu to a form, place the following code into your form's INIT() event:

LOCAL llRetVal

llRetVal = DODEFAULT()

IF llRetVal
*- MyMenu is the MPR file you have created with
*- the menu generator (or coded manually)
DO MyMenu WITH THIS
ENDIF

RETURN llRetVal

HTH,

Weedz (Wietze Veld)
veld4663@exact.nl
The Netherlands

They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best.

After the GoldRush - Steve McConnell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top