Print Page | Close Window

how to disapear rightclick menu of CXTPToolBar

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=10534
Printed Date: 01 March 2025 at 6:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to disapear rightclick menu of CXTPToolBar
Posted By: chnuser
Subject: how to disapear rightclick menu of CXTPToolBar
Date Posted: 07 May 2008 at 1:45am



Replies:
Posted By: RedFin
Date Posted: 07 May 2008 at 2:33am
If this is the customization toolbar, you can use ...

Private Sub CommandBars1_ToolBarContextMenu(ByVal ToolBar As XtremeCommandBars.ICommandBar, ByVal ContextMenu As XtremeCommandBars.ICommandBar)
    ContextMenu.Controls.DeleteAll
End Sub


Obviously if you have your own context menus then you'll have to check the ID of the menu first.

Regards,

Rohan


Posted By: chnuser
Date Posted: 07 May 2008 at 3:30am
thank U;
 
My environment: VC7.1 Toolkit pro 8.6.


Posted By: RedFin
Date Posted: 07 May 2008 at 3:37am
Yeah sorry, my code is VB, but presumably there is something similar under VC?


Posted By: Oleg
Date Posted: 07 May 2008 at 3:46am
Hi,
Search in forum, there was some answers.


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


Posted By: chnuser
Date Posted: 07 May 2008 at 4:15am
Thanks......
 
Uses SetContextMenuPresent().
got it



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