By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,168 Members | 2,598 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,168 IT Pros & Developers. It's quick & easy.

owner drawn menus

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
* "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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.