Professional UI Solutions
Site Map   /  Register


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 General Discussion » Ribbon control, button short description Collapse All
Subject Author Date
Noah Fehrenbacher Nov 18, 2009 - 6:22 PM

Is there a way to add the description field to a button?  For example in Office Word 2007 if you select the top right circular button with the options "New", "Open", "Save", .. etc. select the "Save As" button, the buttons in the drop down have the button.text value as well as a field that gives a short description of the button.  Is there a way to do this with your tool?

Technical Support Nov 19, 2009 - 1:46 PM

You can see such menu items in the RibbonBar sample application. The main text is called menu text. The description text is called extended menu text. Here is how to initialize the ribbon command node:

                                       CExtRibbonNode * pNodeFileSaveAsFormat1 =
                                                            new CExtRibbonNode(
                                                                        _T("Save Document As Format 1")
                                                pNodeFileSaveAsFormat1->CmdKeyTipSet( new CExtCustomizeCmdKeyTip( __EXT_MFC_SAFE_TCHAR( _T(’1’) ) ), false );
                                                            _T("Save a copy of that will be fully compatible\nwith Format 1")

We took the code snippet above from the CMainFrame::_InitRibbon_FileMenu() method of the RibbonBar sample application.