Solved

menu bar color

Posted on 2000-02-15
7
218 Views
Last Modified: 2010-05-02
how do you change the color of a pull down menu bar?
0
Comment
Question by:damion69
  • 4
  • 3
7 Comments
 
LVL 32

Expert Comment

by:Erick37
ID: 2524598
The Menubar color is a systemwide setting.  You can modify this color when your app gains focus, then restore the default when it loses focus.

"HOWTO: Use Custom System Colors Only When Your App Has Focus:

http://support.microsoft.com/support/kb/articles/Q186/0/62.ASP
0
 
LVL 2

Author Comment

by:damion69
ID: 2524739
so there is no way to change the color like you change the background color, or the lable background?
0
 
LVL 32

Expert Comment

by:Erick37
ID: 2524765
Not that I am aware of.
The menubar is a system object, like the titlebar.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 2

Author Comment

by:damion69
ID: 2524772
but wouldnt the form also be, it is defaulted to the system color
0
 
LVL 32

Accepted Solution

by:
Erick37 earned 20 total points
ID: 2524796
You have control of the form's client area.  The menubar, titlebar, and border are non-client areas and are controlled by the system settings.

You can take control of non-client areas if you do the drawing yourself.  Here are a couple of examples, although I have not tried them out.

http://www.vbthunder.com/source/menu/ownmenu.htm

http://www.geocities.com/SiliconValley/Lab/1632/owndmenu.html
0
 
LVL 2

Author Comment

by:damion69
ID: 2524800
thanks eric37
0
 
LVL 32

Expert Comment

by:Erick37
ID: 2524833
You're welcome.
Good luck with the code, it looks daunting!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA open file from excel cell 4 44
MsgBox 2 59
VB6 Compile Compatibility Issue 4 115
Saving history changes to sub form 4 48
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question