Print Page | Close Window

QuickAccess control hide

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=11044
Printed Date: 07 October 2024 at 8:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: QuickAccess control hide
Posted By: chrisABC
Subject: QuickAccess control hide
Date Posted: 16 June 2008 at 3:38am
How do I add controls to the RibbonBar QuickAccessBar that are not visible, but can be turned ON or OFF with the Customization Dialog?


In other words, how can I use program code to hide or show controls in the QuickAccessBar ?




-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



Replies:
Posted By: Oleg
Date Posted: 17 June 2008 at 12:39am
Hi,
 
Try this code
 
    Set Control = RibbonBar.QuickAccessControls.Add(xtpControlButton, ID_FILE_PRINT, "&Print")
    Control.HideFlags = xtpHideCustomize


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


Posted By: chrisABC
Date Posted: 17 June 2008 at 2:17am
Thank you. That works.

And then (as suggested by ijwelch) this also works and is just 1 line

RibbonBar.QuickAccessControls.Add(xtpControlButton, ID_FILE_PRINT, "&Print").HideFlags = xtpHideCustomize


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



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