473,396 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Contaxt Menu

Is it possible, need examples, to format the menus?
As in font size and color & background color.

Thanks

Brian
Nov 21 '05 #1
4 976

"BrianDH" <an*******@discussions.microsoft.com> wrote in message
news:37****************************@phx.gbl...
Is it possible, need examples, to format the menus?
As in font size and color & background color.


Look at the OwnerDraw property of the MenuItem class in MSDN.

Standard disclaimer: fiddling with the display of menu items is a
non-standard thing and should only be done in certain circumstances.
Displaying a list of fonts, each one in its own font, is a good example of
when this is acceptable. Doing it just to make your menus look "cool" is a
good example of when you should think twice about it. (And on that second
thought, make sure you decide against it....)
Nov 21 '05 #2
* "BrianDH" <an*******@discussions.microsoft.com> scripsit:
Is it possible, need examples, to format the menus?
As in font size and color & background color.


Make the menu items ownerdrawn:

<URL:http://www.codeproject.net/vb/net/vsnetstylemenusvb.asp>
<URL:http://www.codeproject.net/vb/net/iconsmenu.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3
Any particular reasons why? Just curious.

Nathan
"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:uY*************@TK2MSFTNGP09.phx.gbl...

"BrianDH" <an*******@discussions.microsoft.com> wrote in message
news:37****************************@phx.gbl...
Is it possible, need examples, to format the menus?
As in font size and color & background color.


Look at the OwnerDraw property of the MenuItem class in MSDN.

Standard disclaimer: fiddling with the display of menu items is a
non-standard thing and should only be done in certain circumstances.
Displaying a list of fonts, each one in its own font, is a good example of
when this is acceptable. Doing it just to make your menus look "cool" is a
good example of when you should think twice about it. (And on that second
thought, make sure you decide against it....)

Nov 21 '05 #4

"Nathan" <nk*********************@softhome.net> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...
Any particular reasons why? Just curious.


Depends on whether you're a professional programmer writing professional
programs or a home-user just screwing around for yourself. Professional
programs should adhere to Windows standards so that users feel comfortable
with them.
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: dr. zoidberg | last post by:
Hello, I'm creating simple menu. MySQL: +----+-----+----------------------+ | id | sid | Title | +----+-----+----------------------+ | 1 | 0 | Main Menu 1 | 2 | 0 | Main Menu 2 | ...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
2
by: Kannan | last post by:
Hi, I am creating C# application with Outlook integration. In the outlook mail, I have to create new item "Fwd to AIA" in the Context menu. If they click that item, it will display My list of...
1
by: Anthony | last post by:
Below is a script I found at http://javascript.internet.com/ for a cascading menu. The script works great but there is one thing that I would like modified. BecauseI am just learning javascript,...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
0
by: avi1000 | last post by:
Hi I want to do something with microsoft Word spell check and I wanted to know if it's possible. I have a TextBox and I want to check the word in the textbox with the help of Word spellcheck. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.