Print Page | Close Window

SOLVED : VB6 Menu Detail

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11531
Printed Date: 21 December 2024 at 9:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED : VB6 Menu Detail
Posted By: darahem
Subject: SOLVED : VB6 Menu Detail
Date Posted: 22 July 2008 at 6:12am
Hi,
I am using codejock  version 12.0 , I use commandbars controls in an App with VB6 with a VB Menu.
 
the problim is that, when running the app the VB Menu shows icons from the imagmanager that I use only for the commandbars control
 
how can I make the menu take icons from another imagemanager, or anywher or even remove the menu icons
 
A Sample Project For The Problem Here is attached
https://forum.codejock.com/uploads/20080722_061149_CommandBar_Prob.rar - uploads/20080722_061149_CommandBar_Prob.rar
 
 
Thanks In Advance



Replies:
Posted By: Aaron
Date Posted: 22 July 2008 at 10:36am

Hi,

Guess you change the ID of the added toolbar icons. Commandbars will convert VB menu starting with ID = 1 and you have the same ID for the toolbar icons.
 
I see you use standard VB menu as well, please look at post: http://forum.codejock.com/forum_posts.asp?TID=9627 - http://forum.codejock.com/forum_posts.asp?TID=9627  before you get into trouble


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: darahem
Date Posted: 23 July 2008 at 9:11am
Thanks, Thanks, Thanks  It works good
 
another small point, how can I change the ID of a sub menu item, for example how I change the ID of the submenu "Copy" of the MainMenu "Edit"
 
Thanks In Advance.
 


Posted By: Aaron
Date Posted: 23 July 2008 at 11:44am
Hi,
 
The ID of the Copy menuitem can be changed like this:
 
CommandBarsMain.ActiveMenuBar.Controls(2).CommandBar.Controls(2).Id = 100
 
I think you would be better off, building your menu with CommandBars    


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: darahem
Date Posted: 23 July 2008 at 11:54am
Thank a lot, it works good.
 
I prefer to use my vb menu because my application which I start using CodeJock controls with it, have a complex menus with a big hug of code to apply some previliges, and this app I have built long time ago and it is used by many customers, so I dont prefer to make a big changes in it now.
 
any way thanks a lot for your appreciated help. 


Posted By: Aaron
Date Posted: 23 July 2008 at 1:32pm
Hi,
 
Glad I was able to help you
 
If your issue is solved, please add SOLVED in your Topic description and have a look at post http://forum.codejock.com/forum_posts.asp?TID=11225 - http://forum.codejock.com/forum_posts.asp?TID=11225



-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net