Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » About RibbonMenu Collapse All
Subject Author Date
tera tera Oct 5, 2009 - 7:50 PM

Hello.


I was colorful and was able to display a ribbon menu.



However, only a general color is displayed when I minimized a ribbon menu.

I want to display this menu in a color.



Please teach a virtual function

Technical Support Oct 7, 2009 - 9:53 AM

How exactly did you implement this colorization? What virtual method exactly do you need?


tera tera Oct 19, 2009 - 10:29 PM

I made a sample program.

Please cope by this program


http://ifreeta.dee.cc/20091006/SampleRibbonBarMDIpop.lzh


Give my best regards

Technical Support Oct 20, 2009 - 11:52 AM

The solution is very simple. We improved the assignment constructor of the CMuRibbonNodeGroup class and implemented the CMuRibbonNodeGroup::Serialize() virtual method in the same class:

CMuRibbonNodeGroup::CMuRibbonNodeGroup(
	CMuRibbonNodeGroup & other
	)
	: CExtRibbonNodeGroup( other )
{
CMuRibbonNodeGroup * pOtherOfMyType = DYNAMIC_DOWNCAST( CMuRibbonNodeGroup, (&other) );
	if( pOtherOfMyType != NULL )
		m_clBkRef = pOtherOfMyType->m_clBkRef;
	else
		m_clBkRef = DEF_COLOR_BLUE;
}

void CMuRibbonNodeGroup::Serialize( CArchive & ar )
{
	CExtRibbonNodeGroup::Serialize( ar );
	if( ar.IsStoring() )
	{
		ar << DWORD(m_clBkRef);
	}
	else
	{
		DWORD dwTmp;
		ar >> dwTmp;
		m_clBkRef = COLORREF(dwTmp);
	}
}

tera tera Oct 21, 2009 - 3:00 AM

 


Thank you


 

Technical Support Oct 6, 2009 - 1:20 PM

The popup ribbon tab page is a completely independent window of CExtRibbonPage type. This popup ribbon page window initializes its buttons using the command tree nodes of the selected ribbon tab page of the main ribbon bar control. If you implemented your own ribbon button group nodes instantiating your ribbon group buttons, then you should see the equal colorized button groups.

tera tera Oct 6, 2009 - 6:58 PM

 


 


I want a virtual function similar to RibbonPage.