Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - SOLVED: Ribbon bar context menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: Ribbon bar context menu

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


Joined: 30 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmdbarSys Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: Ribbon bar context menu
    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.
 
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2008 at 1:23am
Hi,
 
Use AllowQuickAccessCustomization property.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cmdbarSys View Drop Down
Groupie
Groupie


Joined: 30 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmdbarSys Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
cmdbarSys View Drop Down
Groupie
Groupie


Joined: 30 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmdbarSys Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Squale View Drop Down
Groupie
Groupie


Joined: 29 April 2009
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Squale Quote  Post ReplyReply Direct Link To This Post 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
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.