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.
Subject |
Author |
Date |
|
Kevin Eshbach
|
Mar 11, 2008 - 8:57 AM
|
I’m trying to have a context menu come up with one of the menu items mimicing the Save As/Print menu item in the Office 2007 ribbon bar menu. I’d like to have the menu item display a default item which the user can click and a pull right button that when clicked or hovered over displays a sub-menu with additional choices. I’ve looked through the documentation and source code and this doesn’t seem possible. I have been trying to see if I can customize the color picker or undo/redo list box, but I’m not having much success. Is this functionality available and I’m just missing something or is there a way I can implement this?
Kevin Eshbach
|
|
Technical Support
|
Mar 14, 2008 - 12:43 PM
|
This feature is supported. Please apply the __ECTN_TBB_SEPARATED_DROPDOWN | __ECTN_TBB_AUTOCHANGE_ID styles to the command tree node which represents a menu item with popup menu. As a result, this menu item will automatically change its icon and its effective command part to the last invoked menu item’s icon and command identifier. CExtCustomizeSite::MenuInfoGetByName( _T("Document") )
-> GetNode( true )
-> SearchNodeElement( _T("&Object"), 1 )
-> SearchNodeElement( _T("Line &Width..."), 1 )
-> ModifyFlags( __ECTN_TBB_SEPARATED_DROPDOWN );
CExtCustomizeSite::MenuInfoGetByName( _T("Document") )
-> GetNode( false )
-> SearchNodeElement( _T("&Object"), 1 )
-> SearchNodeElement( _T("Line &Width..."), 1 )
-> ModifyFlags( __ECTN_TBB_SEPARATED_DROPDOWN ); Note, your application should be customizable to have this feature working.
|
|