Print Page | Close Window

SOLVED: Ribbon bar context menu

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=11797
Printed Date: 25 June 2024 at 2:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: Ribbon bar context menu
Posted By: cmdbarSys
Subject: SOLVED: Ribbon bar context menu
Date Posted: 12 August 2008 at 11:33am
Hi,
 
When I right-click beside the tabs in ribbon bar I just want to have"Minimize the ribbon bar" option and no other options. If that is not possible I want to get rid of the right click functionality because I can minimize the ribbon bar using Ctrl+F1. Please help me in this regard.
 
 



Replies:
Posted By: Oleg
Date Posted: 13 August 2008 at 1:23am
Hi,
 
Use AllowQuickAccessCustomization property.


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


Posted By: cmdbarSys
Date Posted: 13 August 2008 at 9:30am

No it did not work. I still see three options in the context menu of the ribbon bar.



-------------
Product: Xtreme SuitePro ActiveX v13.1.0
Platform: Windows Vista Business(32bit) - SP 2
Language: Visual C#(Visual Studio 2008)


Posted By: Oleg
Date Posted: 13 August 2008 at 4:15pm
You can hide these buttons in Update handler.
 
Add this line to even to find out Ids of these commands:
 
If (Control.Parent.Position = xtpBarPopup) Then Debug.Print Control.Id


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


Posted By: cmdbarSys
Date Posted: 14 August 2008 at 6:15pm
Thanks a lot Oleg. Problem solved.
Could you please let me know where to change the icon and the topic description(saying "SOLVED") when the problem is solved.


Posted By: SuperMario
Date Posted: 30 April 2010 at 11:40am
Another solution to hide these commands:


'Add these constants
Const XTP_ID_RIBBONCONTROLQUICKACCESS = 9603
Const XTP_ID_RIBBONCONTROLTAB = 9604
Const XTP_ID_RIBBONCUSTOMIZE_REMOVE = 9605
Const XTP_ID_RIBBONCUSTOMIZE_ADD = 9606
Const XTP_ID_RIBBONCUSTOMIZE = 9607
Const XTP_ID_RIBBONCUSTOMIZE_QUICKACCESSBELOW = 9608
Const XTP_ID_RIBBONCUSTOMIZE_QUICKACCESSABOVE = 9610
Const XTP_ID_RIBBONCONTROLQUICKACCESSMORE = 9611

Const XTP_ID_RIBBONCUSTOMIZE_MINIMIZE = 9612
Const XTP_ID_RIBBONCUSTOMIZE_COMMANDS = 9613
Const XTP_ID_RIBBONCUSTOMIZE_MORE = 9616
Const XTP_ID_RIBBONCUSTOMIZE_QUICKACCESSBELOW_MORE = 9617
Const XTP_ID_RIBBONCUSTOMIZE_QUICKACCESSABOVE_MORE = 9618

'Add these Actions
  CommandBars.Actions.Add XTP_ID_RIBBONCUSTOMIZE_QUICKACCESSBELOW, "", "", "", "" ' XTP_ID_RIBBONCUSTOMIZE_QUICKACCESSBELOW  9608
  CommandBars.Actions.Add XTP_ID_RIBBONCUSTOMIZE_QUICKACCESSBELOW_MORE, "", "", "", "" ' XTP_ID_RIBBONCUSTOMIZE_QUICKACCESSBELOW_MORE 9617
  CommandBars.Actions.Add XTP_ID_RIBBONCUSTOMIZE_REMOVE, "", "", "", "" ' XTP_ID_RIBBONCUSTOMIZE_REMOVE 9605
  CommandBars.Actions.Add XTP_ID_RIBBONCUSTOMIZE_ADD, "", "", "", "" ' XTP_ID_RIBBONCUSTOMIZE_ADD 9606
  CommandBars.Actions.Add XTP_ID_RIBBONCUSTOMIZE_MINIMIZE, "", "", "", "" ' XTP_ID_RIBBONCUSTOMIZE_MINIMIZE 9612
  CommandBars.Actions.Add XTP_ID_RIBBONCUSTOMIZE, "", "", "", "" ' XTP_ID_RIBBONCUSTOMIZE 9607

'Filter by ID
Private Sub CommandBars_ControlRButtonUp(ByVal Control As XtremeCommandBars.ICommandBarControl)

  'This will remove the add\remove option for quick access
  If Control.Id = ID_FILE_NEW Then
   CommandBars.Actions(XTP_ID_RIBBONCUSTOMIZE_REMOVE).Visible = False
   CommandBars.Actions(XTP_ID_RIBBONCUSTOMIZE_ADD).Visible = False
  End If
  
End Sub


Posted By: Squale
Date Posted: 17 August 2010 at 10:38am
Using SuperMario tips I have successfully removed "Show Quick Access below the Ribbon" from context menu but I have found no way to do it from Customize form, tab "Quick Access".

Any idea?


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



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