SOLVED: Ribbon bar context menu |
Post Reply |
Author | |
cmdbarSys
Groupie Joined: 30 July 2008 Status: Offline Points: 15 |
Post Options
Thanks(0)
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Use AllowQuickAccessCustomization property.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
cmdbarSys
Groupie Joined: 30 July 2008 Status: Offline Points: 15 |
Post Options
Thanks(0)
|
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) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
cmdbarSys
Groupie Joined: 30 July 2008 Status: Offline Points: 15 |
Post Options
Thanks(0)
|
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.
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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 |
|
Squale
Groupie Joined: 29 April 2009 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |