Menu bar Programming

L

Leif

I'm having a couple of problems with menu bars. Sometimes
one application's menu appears on another application. It
appears that if I iterate through the Commandbars
collection, setting the individual commandbar visible
property to false, I can get around this problem.

Is that the right way to do it? I would also like to
toggle, using Ctrl-F11, between my menu and the "Menu Bar"
menu. However, it seems when I set my custom menu
and "Menu Bar" to visible only the last one set remains
visible. Also the Ctrl-F11 does not work as a toggle,
even tho' I've set the Start Up property "Use Special
Access Keys" On. I can go into custom, and turn on "Menu
Bar", but then I get two menus.

Anyone know how to handle this?

Thanks.
 
A

Albert D. Kallal

It is possible that you are modifying, or customize the built in tool
bars..and you DO NOT really want to do that.

The built in bars and menus are a "user" customize thing, and any thing they
change STAYS on their computer..and does NOT travel with the application.

So, the best approach is to make your own custom menu bars..and then use
them,as they belong to the APPLICATION and NOT the user!!

If you want to see a simple example of a application with some menus, then
grab the 3rd example here:
http://www.attcanada.net/~kallal.msn/msaccess/DownLoad.htm

You will notice how all of the ms-access menus etc are hidden, but NO code
is needed. In other words, you can even dump the concept about setting your
custom menu bars veritable etc, as you really don't need to do this. Try a
few options on the above menus..and note how even when you launch the 2nd
form, the menu options change.
 
L

Leif

I'm not modifying the built-in menus, but I'm creating my
own custom menus. These travel in the application. The
user is not modifying these menus.

I have two applications, a custom menu from application
one is showing up in application two. I don't know why.

I downloaded your application. The menu is interesting,
since I have two. The top menu say "File" and "Feature
Menu". The menu right below that says "File". Is this
what you intended?

Regards,
Leif
 
A

Albert D. Kallal

I'm not modifying the built-in menus, but I'm creating my
own custom menus. These travel in the application. The
user is not modifying these menus.

Ok, that is good.
I have two applications, a custom menu from application
one is showing up in application two. I don't know why.

Hum, that don't make sense at all. You mean when you go into customize mode,
you don't see, nor can find this menu bar...but it does exist show when you
run the application ----I never seen that!
I downloaded your application. The menu is interesting,
since I have two. The top menu say "File" and "Feature
Menu". The menu right below that says "File". Is this
what you intended?

No, as a matter of fact, you should only see the one menu bar. I wonder what
you have done to your office install. Perhaps you changed the main bar, or
set the main bar to NOT allow to be hidden, or not allow to be customized.

However, on a normal setup, you should only see the one menu bar my example.
I would consider re-setting your main menu bar. From your several problems,
something is clearly wrong here...just don't know what.

I would try testing those applications on a different pc..and see what
happens...

Perhaps your startup code modifies some menu bar settings or properties. As
mentioned, don't use "menu bar", or "Utility 1" etc, since those are the
built in ones.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top