Quick access control FindDuplicate fails |
Post Reply |
Author | |
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
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?
|
|
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 |