473,657 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1231
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*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:Oo******** ******@TK2MSFTN GP11.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*******@TAKE OUTTHISSPAMBUST ERsofthome.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*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:Oo******** ******@TK2MSFTN GP11.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.SQUA REBRACKETS.[mdaudi100#ntlwo rld.com]> wrote in
message news:O%******** ********@TK2MSF TNGP11.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*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:Oo******** ******@TK2MSFTN GP11.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*****@cherwe llinc.com> wrote in message
news:ut******** *****@TK2MSFTNG P11.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*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:Oo******** ******@TK2MSFTN GP11.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
2511
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 works perfectly fine when it is double-clicked. However, when I try to initialize the notify icon's context menu as an owner-drawn menu, all the text in that menu disappears. Is owner drawing a notify icon's context menu possible? I saw someone...
6
1145
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. Thank you in advance.
0
8385
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8303
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8502
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7316
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.