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

Menu in application

Status
Not open for further replies.

D2C

Programmer
Aug 27, 2001
86
BE
Hi there,

Can somebody help me with creating a customized menu in my application? I just want to have one menu on top without toolbars or other options. I already created a menu and saved it onto my harddisk. But how can I disable the other menu's?

I create the application as a visual foxpro application.

thanks for your help!

greetz,
d2c
 

Code:
SET SYMENU TO
DO MENU mymenu.mpr


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
D2c,

Use the menu designer, which lives on the "other" page of the project manager. From the menu menu (yes, it is really called that), generate an MPR file, then do as Mike Gagnon advised above.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
I still get the toolbar and the Format command in my menubar.
I just want to have one menu, called hoofdmenu.mpr

Is it possible to make it more specific for me, I am a newbie in VFP8.

tnx,
d2c
 
As I am a newbie, I do not understand the following:

I created a menu, called hoofdmenu.MNX
Now I just want to have an application that starts with ONLY this menu, in the menu I included commands to call the different forms.

If I put SET SYSMENU TO, like Gagnon advised, I still get the toolbar and a format function in the top of my screen.

Can you guys explain to me how I can get this done?
Just the interface, with one menubar.

tnx a lot!!

greetz,
d2c
 

Have you created you project with the project wizard? If so that would be most likely as a result of using the wizard. If not do you have a READ EVENTS placed righ after your menu call?
Code:
SET SYSMENU TO
DO myMenu.mpr
READ EVENTS

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Yes, I did make it with the project wizard. Is this less good? Should I use the application builder from zero to make this app?

tnx a lot for your kind help,

d2c
 
DC2,

I still get the toolbar and the Format command in my menubar.

The Format command is only there when the command window or an editing window is open and has focus. Your users won't see it when they run your application as an executable. Just ignore it until then.

As for the toolbar, you get rid of that by executing this command:

HIDE WINDOW Standard

All the toolbars have a name. Standard is the main toolbar. You can use a similar technique to hide (or show) any of the toolbars.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
D2C

Yes, I did make it with the project wizard. Is this less good? Should I use the application builder from zero to make this app?

Less good? Perhaps not, but certainly more complicated to maintain. There is a lot of code being generated when you use the wizard that you might not be aware of and by changing certain things to suit your needs, things stop working and you're not sure why. I would recommend you look at what the wizard created, study it, but I think is it best to create you application from scratch and be in control of it. In the meantime, with your project opened, right-mouse on the project manager (in the grey part) and see if you see the builder option and use the application builder interface, if that opens and you can access the last tab "Advanced", and unselect the standard menu and toolbar option.



Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top