Print Page | Close Window

Custom Ribbon control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=16992
Printed Date: 23 November 2024 at 3:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom Ribbon control
Posted By: pmizenin
Subject: Custom Ribbon control
Date Posted: 23 July 2010 at 5:09pm
Greetings!

I'm trying to develop a custom ribbon control based on Codejock's xtpControlCustom.  The functionality I need is as follows:

The custom control should be a child of a split button, and when the custom control is clicked, it should give the parent control its ID and icon.

In other words, I have a split button "Analyze" a sub-menu "Analyze using A", "Analyze using B", "Analyze using C" ...  When each of these sub-menus is clicked, they should reset the parent "Analyze" button to become the most recently clicked button.

The complication is that I'm loading Ribbon definition from XML.  Simply throwing xtpControlCustom in as a type of button doesn't work, bombs somewhere in GetCommandBars()->DoPropExchange. 

Has anybody done anything similar?  What's the best way to go about this?

Many thanks!
-Pavel







Replies:
Posted By: ABuenger
Date Posted: 12 August 2010 at 5:49pm
I would like to see such a control added too. Should be a flag for the split button. Oleg?

   


-------------
Codejock support



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