Print Page | Close Window

How to move from Ribbon-Backstage to Tabs by code?

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=21825
Printed Date: 17 June 2025 at 5:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to move from Ribbon-Backstage to Tabs by code?
Posted By: yoavo
Subject: How to move from Ribbon-Backstage to Tabs by code?
Date Posted: 30 July 2013 at 2:49am
Hi,
I am using the Ribbon Backstage and I need that clicking on a button that belongs to on of the backstage dialogs will cause the tabs area to be active (and not the backstage).
 
How can I do it ?
Yoav.



Replies:
Posted By: ATRML
Date Posted: 23 January 2014 at 2:41pm
This is also an issue for me; I'm working on it currently.  I'll let you know if I solve it.


Posted By: ATRML
Date Posted: 23 January 2014 at 2:54pm
That didn't take long; haha!  I looked in the source of the CXTPRibbonBackstageView class, and saw that it had an OnCancel() handler which just looks like this:

void CXTPRibbonBackstageView::OnCancel()
{
SetTrackingMode(FALSE);
}

Since SetTrackingMode() is the function that does what we want, and is private/protected, I think the best way to trigger this is as follows:

1. Maintain a pointer to the CXTPRibbonBackstageView in your page classes;
2. When you want to 'close' the backstage, do the following:

m_pView->SendMessage(WM_COMMAND, MAKEWPARAM(IDCANCEL, 0));

This worked for me!



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