PC Review


Reply
Thread Tools Rate Thread

context menus with icons

 
 
Matt Michael
Guest
Posts: n/a
 
      19th Oct 2004
Hi, is there any way to add menu items to a context menu with icons next to
them. When I declare a menuitem, it does not seem like there is a .icon
property or anything similar or intuitive like that. An example that
illustrates this is right clicking on your desktop, choosing "New", and for
each type of file it displays a different icon next to it. Thanks for your
help!


 
Reply With Quote
 
 
 
 
BluDog
Guest
Posts: n/a
 
      19th Oct 2004
On Tue, 19 Oct 2004 11:11:28 -0400, "Matt Michael"
<(E-Mail Removed)> wrote:

>Hi, is there any way to add menu items to a context menu with icons next to
>them. When I declare a menuitem, it does not seem like there is a .icon
>property or anything similar or intuitive like that. An example that
>illustrates this is right clicking on your desktop, choosing "New", and for
>each type of file it displays a different icon next to it. Thanks for your
>help!
>


You would have to inherit from the MenuItem class and add an image
property, then Override the OnPaint method to draw the icon where you
want it.

Hope this helps

Blu.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No Desktop Icons, Start Menus, Quick Menus 1DPIX Windows XP General 13 26th Sep 2009 10:02 PM
WPF context menus hbrower Microsoft Dot NET Framework 1 28th Feb 2008 02:14 AM
Re: icons on context menus Ken Tucker [MVP] Microsoft VB .NET 1 21st Sep 2004 07:00 AM
icons on context menus =?Utf-8?B?Um9iZXJ0IFNtaXRo?= Microsoft VB .NET 0 20th Sep 2004 10:29 PM
Context menus and treeviews, suggestions for a NODE sensitive context menu Eric Newton Microsoft Dot NET Framework Forms 4 13th Jan 2004 09:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:29 PM.