HighTechTalks DotNet Forums  

Images in menubar

Dotnet Framework (WinForms) microsoft.public.dotnet.framework.windowsforms


Discuss Images in menubar in the Dotnet Framework (WinForms) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Amey
 
Posts: n/a

Default Images in menubar - 07-04-2005 , 06:17 AM






How does one bring images in menu bars in .NET 2003 like Office has.
Similarly how to have toolbars that can be moved and can turn into palette
windows

Reply With Quote
  #2  
Old   
Herfried K. Wagner [MVP]
 
Posts: n/a

Default Re: Images in menubar - 07-04-2005 , 07:12 AM






"Amey" <Amey (AT) discussions (DOT) microsoft.com> schrieb:
Quote:
How does one bring images in menu bars in .NET 2003 like Office has.
Similarly how to have toolbars that can be moved and can turn into palette
windows
SandBar
<URL:http://divil.co.uk/net/controls/sandbar/>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>



Reply With Quote
  #3  
Old   
Amey
 
Posts: n/a

Default Re: Images in menubar - 07-05-2005 , 02:21 AM



Thank you for your reply.

Sandbar is a 3rd party control. Can this control be developed by coding in
C# or VB.NET etc.

Regards
Amey

"Herfried K. Wagner [MVP]" wrote:

Quote:
"Amey" <Amey (AT) discussions (DOT) microsoft.com> schrieb:
How does one bring images in menu bars in .NET 2003 like Office has.
Similarly how to have toolbars that can be moved and can turn into palette
windows

SandBar
URL:http://divil.co.uk/net/controls/sandbar/

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/
V B <URL:http://classicvb.org/petition/



Reply With Quote
  #4  
Old   
Alex Clark
 
Posts: n/a

Default Re: Images in menubar - 07-05-2005 , 05:00 AM



Hi Amey,

You have to make a menu derived control which is "owner-drawn", which
involves responding to the OnMeasureItem and OnDrawItem events. In these
two events, you can alter the size and graphical content of your custom
MenuItem respectively. The latter of the two events allows you to draw
directly onto the MenuItem's surface, which means you can place icons,
bitmaps, lines, textures etc on it.

I'm fairly sure there's a comprehensive Dr Gui article on MSDN that explains
in detail how to do it, but there are certainly no shortage of examples on
the 'net, CodeProject would be another good place to look.

Kind Regards,
Alex Clark



"Amey" <Amey (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thank you for your reply.

Sandbar is a 3rd party control. Can this control be developed by coding in
C# or VB.NET etc.

Regards
Amey

"Herfried K. Wagner [MVP]" wrote:

"Amey" <Amey (AT) discussions (DOT) microsoft.com> schrieb:
How does one bring images in menu bars in .NET 2003 like Office has.
Similarly how to have toolbars that can be moved and can turn into
palette
windows

SandBar
URL:http://divil.co.uk/net/controls/sandbar/

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/
V B <URL:http://classicvb.org/petition/





Reply With Quote
  #5  
Old   
Amey
 
Posts: n/a

Default Re: Images in menubar - 07-05-2005 , 12:34 PM



Hello Alex

Thanks for your solution. It seems promising. I'll try and get back on this.

Amey

"Alex Clark" wrote:

Quote:
Hi Amey,

You have to make a menu derived control which is "owner-drawn", which
involves responding to the OnMeasureItem and OnDrawItem events. In these
two events, you can alter the size and graphical content of your custom
MenuItem respectively. The latter of the two events allows you to draw
directly onto the MenuItem's surface, which means you can place icons,
bitmaps, lines, textures etc on it.

I'm fairly sure there's a comprehensive Dr Gui article on MSDN that explains
in detail how to do it, but there are certainly no shortage of examples on
the 'net, CodeProject would be another good place to look.

Kind Regards,
Alex Clark



"Amey" <Amey (AT) discussions (DOT) microsoft.com> wrote in message
news:FBC72497-C3E6-4F1F-920A-1A0D1CCCC0E8 (AT) microsoft (DOT) com...
Thank you for your reply.

Sandbar is a 3rd party control. Can this control be developed by coding in
C# or VB.NET etc.

Regards
Amey

"Herfried K. Wagner [MVP]" wrote:

"Amey" <Amey (AT) discussions (DOT) microsoft.com> schrieb:
How does one bring images in menu bars in .NET 2003 like Office has.
Similarly how to have toolbars that can be moved and can turn into
palette
windows

SandBar
URL:http://divil.co.uk/net/controls/sandbar/

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/
V B <URL:http://classicvb.org/petition/






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.