Print Page | Close Window

Added Context menu disabled after upgrade

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=13157
Printed Date: 04 May 2024 at 7:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Added Context menu disabled after upgrade
Posted By: Toeeb
Subject: Added Context menu disabled after upgrade
Date Posted: 13 January 2009 at 6:02am

Hi,
I upgrade to version 12.1.1 and realised all context menu's are now disabled when I right-clicked on the toolbar.

CommandBars_ToolBarContextMenu

ContextMenu.Controls.Add      xtpControlButton,ID_MENUCONTEXT_CONFIGURE, "Configure"


Has anyone else experienced this and how can I resolve this issue?

Many thanks in advance.




Replies:
Posted By: Oleg
Date Posted: 13 January 2009 at 6:30am
Hi,
Do you have Update handler for ID_MENUCONTEXT_CONFIGURE ? try add it and set Control.Enabled to True.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Toeeb
Date Posted: 13 January 2009 at 7:35am

Tried it and menus still disabled. The same issue occurs in the RibbonSample VB 6 project. It works fine prior to version 12.

Any other suggestion please? I am pulling out what little hair I have left at the moment.

Many thanks


Posted By: Toeeb
Date Posted: 14 January 2009 at 10:30am
Hi!
Just wondering if anyone is experiencing this problem apart from myself. I have now on to something else for now but I still have to come back to this issue.

Eagerly waiting any response.



Posted By: Oleg
Date Posted: 15 January 2009 at 4:09am
Hello,
 
Thanks, see it now. Please as workaround add such code:
 
Private Sub CommandBars_ToolBarContextMenu(ByVal ToolBar As XtremeCommandBars.ICommandBar, ByVal ContextMenu As XtremeCommandBars.ICommandBar)
    Dim Control As CommandBarControl
    Set Control = ContextMenu.Controls.Add(xtpControlButton, ID_MENUCONTEXT_CONFIGURE, "Configure")
    Control.Enabled = True
    Control.Flags = Control.Flags Or 8

End Sub


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Toeeb
Date Posted: 16 January 2009 at 5:47am
Thank you! you're a star!



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