martin2k

ForumsVB6GamesSoftwareDirectoryHTMLArticlesBlogContact

How do I add pictures to menu items?


 

Home

Read and add posts to the Visual Basic 6.0 Forums

Download some of my programs and OCXs

Read the Tips here

The old style forum is still available here

Contact


 

Question

From: Fotis Gtpower
Date: Saturday 29 December 2001 1:33 AM
Subject: how I can do this?
Question: hello Martin ,
I found your site while I was surfing on the internet.
It is very interesting.I am trying to learn programming in visual basic but I am still amateur.I would like to ask you a question because I believe that you know.
I know how to create menus with the menu editor but I want to add icons on the options.For example in Microsoft Word on the menus the option SAVE has a icon (a diskette)on the left.
How can I do this?Is it difficult?I searched 2 books but nothing!
Thanks a lot!
Bye
Fotis

Thank you for your e-mail.

The answer can be found on the VB-Helper website.

The following links will help you do this:

Add pictures to a popup menu: http://www.vb-helper.com/howto_popup_pictures.html

Put text with a color background in menus: http://www.vb-helper.com/howto_menu_colored_text.html

The first link shows you how to use the 'GetMenu', 'GetSubMenu' and 'SetMenuItemInfo' API functions.


blog comments powered by Disqus

Archived Comments

From: Rajesh K
Date: Saturday, September 13, 2008 at 08:23:39
Comments: This is Good
 
From: Aijaz
Date: Tuesday, August 14, 2007 at 12:01:12
Comments: nice try
keep it up and make it advance.
 
From: Adi
Date: Wednesday, June 14, 2006 at 12:11:06
Comments: Hi..
Very nice and having valuable information...I m expecting it's a big portal in soon with this type of valuable info..

Ur's
Aadi Yadlapalli

 
From: Rod Stephens
Date: Wednesday, June 1, 2005 at 04:21:40
Comments: The VB Helper examples have been superceded by these:

Add pictures to a popup menu
http://www.vb-helper.com/howto_popup_pictures.html

Put text with a color background in menus
http://www.vb-helper.com/howto_menu_colored_text.html

 
Reply: Thanks, I have updated the links.
 
From: Master Shuige
Date: Friday, May 27, 2005 at 09:49:40
Comments: Got to add an image list guys... set indexs... and your all set..
 
From: Mohammad Kamran Haleem
Date: Tuesday, May 3, 2005 at 12:17:35
Comments: Your site is very good. It is very Useful for Beginers and for developer. I appreciate and Encourage you that it is a great site for all who really want to make an expert in programming.
                     Your well wisher,Kamran(Pakistan)
 
From: asif
Date: Monday, October 4, 2004 at 13:59:12
Comments: Ur site is nice but trying to make it more plz and we need vb source code trying to load ur site from vb source code.

thx

 
From: Pius
Date: Tuesday, January 20, 2004 at 16:53:14
Comments: Please could you show some code how to add icons to your menu options or could you show me how to locate the solution in the VB-Helper Website. I'm having ploblems downloading
 
From: rama raju <ramaraju_812001>
Date: Monday, January 19, 2004 at 08:25:08
Comments: how should i add icons to menuitems in vb 6.0
 
From: vnm31
Date: Thursday, November 13, 2003 at 11:36:37
Comments: we can change Menu Background color using SetSysColor API.

but it changes the colors for all applications. ...

Is there any way to use SetSysColor only for the current thread???? 
please help....

regards
vnm

 
From: Sudhi
Date: Tuesday, February 18, 2003 at 10:20:20
Comments: The above url gives only some help not in detail..
Please help...
regards, Sudhi

Martin Allen 1999 - 2011.  Last updated Monday 08 August 2011 08:08:03 PM +0100.