Article View: borland.public.delphi.winforms.controls.using
Article #232Re: pictures next to menu items???
From: Wayne Niddery [TeamB]
Date: Tue, 01 Aug 2006 17:32
Date: Tue, 01 Aug 2006 17:32
20 lines
1785 bytes
1785 bytes
Brigitte Spatz wrote: > Virtually all applications I have installed on my computer have icons > next to menu items (e.g. the folder image in File->Open) but I can't > find a way to do that with a > System.Windows.Forms.MainMenu/System.Windows.Forms.MenuItem. Surely > it's got to be doable??? If not, what component do I have to use > instead? Use OwnerDraw. Entering .Net mainmenu ownerdraw in google gets a wealth of hits, here's one from msdn: http://msdn2.microsoft.com/en-us/library/system.windows.forms.menuitem.ownerdraw.aspx The Graphics property also has methods for drawing images. -- Wayne Niddery - Winwright, Inc (www.winwright.ca) "Bandwagons are like streetcars, there'll be another along in a few minutes."
Technical Details
Message-ID:
<44cf9047$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<op.tdlv8ofhsr6zr4@acer>Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,ef2551aea9cd4870 X-Google-Attributes: gid1eff29,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca> From: "Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca> Newsgroups: borland.public.delphi.winforms.controls.using References: <op.tdlv8ofhsr6zr4@acer> Subject: Re: pictures next to menu items??? Date: Tue, 1 Aug 2006 13:32:54 -0400 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 69.17.150.141 Message-ID: <44cf9047$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1154453575 69.17.150.141 (1 Aug 2006 10:32:55 -0700) X-Authenticated-User: wniddery Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail