473,398 Members | 2,120 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,398 software developers and data experts.

owner drawn menus

Would I be better off to just inherit the menu control and make my own owner
drawn menu control.

Had lots of experience with controls in VB5 and 6 but none so far in .NET

You would think MS would have included icons for menus in the basic control.
Everyone wants it.

Do you all consider this to be a difficult task? Or should it be simple and
the best way to go.

Seems to me that all I'd need to do is trap a few events, add a place to
hold images, paint them in the paint event,etc.

Thanks for any opinions on doing this and the degree of difficulty.

Shane

I'd rather do this than license a control that isn't mine and have to deal
with the license. --just to get simple pictures on the menu items
Nov 20 '05 #1
5 1220
Hi Shane,

There's a fine control available for this at www.divil.co.uk completely free
and license issues free; I use it myself.

If you want to draw your own, take a look at this month's MSDN mag - Dino
Esposito has an article on this very issue.

HTH,

Bernie Yaeger

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:Oo**************@TK2MSFTNGP11.phx.gbl...
Would I be better off to just inherit the menu control and make my own owner drawn menu control.

Had lots of experience with controls in VB5 and 6 but none so far in .NET

You would think MS would have included icons for menus in the basic control. Everyone wants it.

Do you all consider this to be a difficult task? Or should it be simple and the best way to go.

Seems to me that all I'd need to do is trap a few events, add a place to
hold images, paint them in the paint event,etc.

Thanks for any opinions on doing this and the degree of difficulty.

Shane

I'd rather do this than license a control that isn't mine and have to deal
with the license. --just to get simple pictures on the menu items

Nov 20 '05 #2
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
Would I be better off to just inherit the menu control and make my own owner
drawn menu control.


If you want to /learn/ how to do that:

Adding icons to menus in VB.NET
<http://www.codeproject.com/vb/net/iconsmenu.asp>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
I've never found a way to force an Inherited MenuControl to use customised
MenuItems.
I have written a MenuItem Class though, the source and demo can be found at:

<http://www.planet-source-code.com/vb...1123&lngWId=10

Mick

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:Oo**************@TK2MSFTNGP11.phx.gbl... Would I be better off to just inherit the menu control and make my own owner drawn menu control.

Had lots of experience with controls in VB5 and 6 but none so far in .NET

You would think MS would have included icons for menus in the basic control. Everyone wants it.

Do you all consider this to be a difficult task? Or should it be simple and the best way to go.

Seems to me that all I'd need to do is trap a few events, add a place to
hold images, paint them in the paint event,etc.

Thanks for any opinions on doing this and the degree of difficulty.

Shane

I'd rather do this than license a control that isn't mine and have to deal
with the license. --just to get simple pictures on the menu items

Nov 20 '05 #4
Thanks Mick,

This is very interesting. How about the rest of the group?

Does anyone else know of a way to inherit the menu control and customize
items or can that not be done?

May Microsoft will respond and tell us if there is no way to do this.

thanks,

Shane

"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote in
message news:O%****************@TK2MSFTNGP11.phx.gbl...
I've never found a way to force an Inherited MenuControl to use customised
MenuItems.
I have written a MenuItem Class though, the source and demo can be found at:

<http://www.planet-source-code.com/vb...1123&lngWId=10


Mick

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:Oo**************@TK2MSFTNGP11.phx.gbl...
Would I be better off to just inherit the menu control and make my own

owner
drawn menu control.

Had lots of experience with controls in VB5 and 6 but none so far in ..NET
You would think MS would have included icons for menus in the basic

control.
Everyone wants it.

Do you all consider this to be a difficult task? Or should it be simple

and
the best way to go.

Seems to me that all I'd need to do is trap a few events, add a place to
hold images, paint them in the paint event,etc.

Thanks for any opinions on doing this and the degree of difficulty.

Shane

I'd rather do this than license a control that isn't mine and have to deal with the license. --just to get simple pictures on the menu items


Nov 20 '05 #5
Thanks for the info and site. There are some cool controls there.
But for profit apps do have to buy them.

I have bookmarked the site and will keep it in mind. It is a great
reference.

Shane

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:ut*************@TK2MSFTNGP11.phx.gbl...
Hi Shane,

There's a fine control available for this at www.divil.co.uk completely free and license issues free; I use it myself.

If you want to draw your own, take a look at this month's MSDN mag - Dino
Esposito has an article on this very issue.

HTH,

Bernie Yaeger

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:Oo**************@TK2MSFTNGP11.phx.gbl...
Would I be better off to just inherit the menu control and make my own

owner
drawn menu control.

Had lots of experience with controls in VB5 and 6 but none so far in ..NET
You would think MS would have included icons for menus in the basic

control.
Everyone wants it.

Do you all consider this to be a difficult task? Or should it be simple

and
the best way to go.

Seems to me that all I'd need to do is trap a few events, add a place to
hold images, paint them in the paint event,etc.

Thanks for any opinions on doing this and the degree of difficulty.

Shane

I'd rather do this than license a control that isn't mine and have to deal with the license. --just to get simple pictures on the menu items


Nov 20 '05 #6

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

Similar topics

2
by: Eric | last post by:
I implemented owner drawing on the main and context menus of my main form. It works fine. There is also a notify icon control that has a context menu. When the icon is in the status bar, it...
6
by: Juan Romero | last post by:
Hey guys, Is it possible in VB.NET to do owner drawn menus? I want to spice up my menus a bit with graphics and colors. Can this be done? If so, please point out some tutorials on this matter. ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.