Print Page | Close Window

Actions

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=15726
Printed Date: 29 May 2024 at 6:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Actions
Posted By: feffe
Subject: Actions
Date Posted: 26 November 2009 at 4:37am
Hi, I have an articulated MDI application with ribbon.
 
I'd like that every time a commandbar control get disabled, it becomes also not visible.
I think Actions would be useful for me...
 
Is it true?
How can I efficiently use them considering my target?



Replies:
Posted By: znakeeye
Date Posted: 26 November 2009 at 10:58am

pRibbon->FindControl()->SetVisible(FALSE);

Maybe you can do this in update-handler too (haven't tested this).

CXTPControl *pControl = CXTPControl::FromUI(pCmdUI);
if (pControl)
{
    pControl->SetVisible(condition);
}
 


Posted By: znakeeye
Date Posted: 26 November 2009 at 10:58am
However, do remember that this violates Microsoft ribbon guidelines! Controls shall never be hidden!



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