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 General Discussion » Ribbon Bar node with popup menu. Collapse All
Subject Author Date
Viktor Korol May 16, 2007 - 10:06 AM

1. I create command on the popup menu of the Ribbon Bar node.

    CExtCustomizeCmdTreeNode *pNodePaste_Paste =
        new CExtCustomizeCmdTreeNode(
            ID_EDIT_PASTE,
            ID_EDIT_PASTE,
            NULL,
            0,
            _T("Paste\tCtrl+V"),
            _T("Paste\tCtrl+V"),
            NULL,
            0,
            &pasteIcon);

2. In the menu paints "PasteCtrl+V" instead of "Paste[TAB]Ctrl+V".
3. If I track popup menu with the same command then in popup menu of the Ribbon Bar node paints "PasteCtrl+V[TAB]Ctrl+V".

How to fix this issue?

Technical Support May 16, 2007 - 12:11 PM

You should not specify the accelerator text in the ribbon node text. The ribbon menus find the corresponding command accelerator in the accelerator table and display the accelerator keys combination automatically.



Viktor Korol May 16, 2007 - 12:18 PM

Yes, but accelerator text in the ribbon node text shows only after I track standard popup menu (CExtPopupMenuWnd) with the same command. How to fix this issue?

Viktor Korol May 16, 2007 - 12:22 PM

Additional. This command is not present in acceletaror table.

Technical Support May 17, 2007 - 11:18 AM

The keyboard accelerators for all the commands in the ribbon bar (buttons and menu items) are customizable through ribbon’s Options dialog. The current set of commands are stored in the accelerator table. The non-accelerator table based key combinations in menus are not supported. Why don’t you implement all the accelerator key combinations via accelerator table?

Viktor Korol May 17, 2007 - 11:28 AM

I added the command to accelerator table. But but accelerator text in the ribbon node text shows only after I track standard popup menu (CExtPopupMenuWnd) with the same command. How to fix this issue?

Technical Support May 18, 2007 - 5:08 AM

The ribbon control runs like a standalone application in scope of your project. It even track its own command profile in the command manager with all the command descriptions for all its commands. There is no dependency between the ribbon menus and any other context menus in your application. So we need some your help to reproduce the problem using our RibbonBar sample.