Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - SOLVED : VB6 Menu Detail
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED : VB6 Menu Detail

 Post Reply Post Reply
Author
Message
darahem View Drop Down
Groupie
Groupie


Joined: 22 July 2008
Location: Egypt
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote darahem Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED : VB6 Menu Detail
    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
 
 
Thanks In Advance
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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 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....
Back to Top
darahem View Drop Down
Groupie
Groupie


Joined: 22 July 2008
Location: Egypt
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote darahem Quote  Post ReplyReply Direct Link To This Post 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.
 
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
darahem View Drop Down
Groupie
Groupie


Joined: 22 July 2008
Location: Egypt
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote darahem Quote  Post ReplyReply Direct Link To This Post 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. 
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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

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....
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.