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 » How to assign short cut keys to ribbonbar buttons? Collapse All
Subject Author Date
Brian Horn Feb 7, 2007 - 10:35 PM

How to assign short cut keys to ribbonbar buttons?

Technical Support Feb 8, 2007 - 8:49 AM

There are customizable keyboard accelerators only that are available in the ribbon bar/ribbon page controls at the moment. The key tips are under development ans will be available very soon.

The keyboard accelerator support is provided by the CExtCustomizeSite class which is the base class for both CExtRibbonBar and CExtRibbonPage classes. The accelerator table is stored as a property of the menu line information object in the customize site. You can access The ribbon controls are using only one default menu information object which you should access for loading the accelerator table.

      VERIFY(
            m_wndRibbonBar.
                  MenuInfoGetDefault()->
                        AccelTableLoad( IDR_MAINFRAME )
            );


Andrew Banks Feb 16, 2007 - 11:58 AM

I have done this and it doesn’t work.

I use ID_QA_FILE_SAVE for the quick access save button.

I associate ID_QA_FILE_SAVE with controls s in the accelator which is loaded as
VERIFY(
m_wndRibbonBar.
MenuInfoGetDefault()->
AccelTableLoad( IDR_MAINFRAME )
);

Control s does not send ID_QA_FILE_SAVE to the message queue.

Technical Support Feb 17, 2007 - 1:25 PM

We guess the empty accelerators were loaded from the system registry. Please reset the keyboard accelerators from the Options dialog or delete the application’s state data in the system registry.