Print Page | Close Window

HideFlags property on Ribbon Quick Access Toolbar

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=23312
Printed Date: 27 November 2024 at 1:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HideFlags property on Ribbon Quick Access Toolbar
Posted By: wrecks
Subject: HideFlags property on Ribbon Quick Access Toolbar
Date Posted: 09 April 2017 at 10:19am
I have added a drop-down (xtpControlComboBox) control to the Quick Access Toolbar of my Ribbon.  I did this by making a Clone of an existing control and then using QuickAccessControls.AddControl.  But the cloned control does not appear on my QAT.  

The culprit seems to be that the HideFlags property is 128 in the new control.  This value is not shown in the help file (only values through 32 are explained).  

If I set HideFlags=0 and Visible=1 and Height=16, then my control appears!

Can you explain what 128 means (and perhaps 64 also?) and why my new control would have that value? 



Replies:
Posted By: olebed
Date Posted: 01 May 2017 at 12:19pm
Hello wrecks,

They are xtpHideDocTemplate and xtpHideRibbonTab flags. But they haven't added to ActiveX. I will fix this. Thanks for bringing this to our attention.

enum XTPControlHideFlags
{
    xtpNoHide = 0,              // Control is visible.
    xtpHideGeneric = 1,         // Control is hidden by generic reason.  Developer set Visible = False.
    xtpHideWrap = 2,            // Control is hidden by wrap.  Toolbar is too small and the control is wrapped.
    xtpHideDockingPosition = 4, // Control is hidden by docking position.  If a toolbar has a combobox or edit control, when the toolbar is docked in the left or in the right side of frame, the Commandbar ComboBox and Edit controls becomes hidden.
    xtpHideScroll = 8,          // Control is hidden by scrolling.  There are too many controls in a popup and the control is hidden because the popup is scrolled.
    xtpHideCustomize = 16,      // Control is hidden by customize settings.  User removed it.  This is only possible when customization is enabled.  This flag is set if the user removes the control from the Add and Remove Buttons popup menu.
    xtpHideExpand = 32,         // If the control is rarely used and it is not visible because the intelligent menus option on and the command is a hidden command.
    xtpHideDocTemplate = 64,    // Control is hidden because active template excluded from its list.
    xtpHideRibbonTab =  128     // Control is hidden because inactive ribbon tab.
};


Regards,
 Oleksandr Lebed



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