Print Page | Close Window

Quick access control FindDuplicate fails

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=17803
Printed Date: 28 November 2024 at 10:44pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Quick access control FindDuplicate fails
Posted By: rdhd
Subject: Quick access control FindDuplicate fails
Date Posted: 23 January 2011 at 11:10am
The CXTPRibbonQuickAccessControls::FindDuplicate fails to find a control if the control is hidden because of the xtpHideRibbonTab flag. Should the method not do this in the test:

if (pQuickAccessControl->GetID() == pControl->GetID() && (pQuickAccessControl->IsVisible(xtpHideWrap) || pQuickAccessControl->IsVisible(xtpHideRibbonTab )) &&

pQuickAccessControl->GetType() == pControl->GetType() && pQuickAccessControl->GetRuntimeClass() == pControl->GetRuntimeClass())

{

return pQuickAccessControl;

}

The comment for the hide flag says it is set for an "inactive ribbon". I have an inactive ribbon because I have an MDI application and the user is customizing the layout for a document type that is not the same as the active document (I don't even have that doc type open). Hence when the user adds a control to the QAT, IsAllowQuickAccessControl always returns TRUE for an inactive ribbon.
 
I can customize the ribbon without showing it. Is there some other way to customize a QAT layout of a ribbon without being forced to show the ribbon on the frame?



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