Print Page | Close Window

OnUpdate Handler

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8027
Printed Date: 13 November 2025 at 9:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OnUpdate Handler
Posted By: terrym
Subject: OnUpdate Handler
Date Posted: 16 September 2007 at 11:28am
Does anybody know how to do SetVisible for a group, as we want this to be show/hide in our update handler ???
 
Any ideas cheers, as seem to be getting crashes :(


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: terrym
Date Posted: 16 September 2007 at 11:50am

As right now I do this, but surely it is possible to get the pGroup pointer from the pCmdUI passed to the OnUpdate handler

 

CXTPRibbonBar *pRibbonBar = m_RibbonFormat.m_pRibbonBar;

CXTPRibbonGroup *pGroup = pRibbonBar->FindGroup( ID_FORMAT_ORIENTATION_GROUP );

pGroup->SetVisible( m_RibbonFormat.GetOrientation() != -1 ? TRUE : FALSE );



-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



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