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 » I ask about the accelerator key to Ribbon Collapse All
Subject Author Date
tera tera May 6, 2009 - 7:19 PM

Hello.


When I want to return a key allotment to standard setting.


IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE PURE 
BEGIN
    "0",		    IDM_POWER_VIEWER,	   VIRTKEY, CONTROL, NOINVERT
    "1",		    IDM_SOU_1,			  VIRTKEY, CONTROL, NOINVERT
    "2",		    IDM_SOU_2,			  VIRTKEY, CONTROL, NOINVERT
    "3",		    IDM_SOU_3,			  VIRTKEY, CONTROL, NOINVERT
    "3",		    IDM_ZENTAI3D,		   VIRTKEY, CONTROL, ALT, NOINVERT
    "4",		    IDM_SOU_4,			  VIRTKEY, CONTROL, NOINVERT
    "A",		    IDM_OP_VIEW_FIT,	    VIRTKEY, CONTROL, NOINVERT
    "B",		    IDM_BUBUN_SEISEI,	   VIRTKEY, CONTROL, ALT, NOINVERT
    "D",		    IDM_OP_CHANGE_DEL,	  VIRTKEY, CONTROL, NOINVERT
    "E",		    IDM_ERRORLIST,		  VIRTKEY, CONTROL, NOINVERT
    "H",		    IDM_OP_LAYER_STACK_DIRECT, VIRTKEY, CONTROL, NOINVERT
    "I",		    IDM_OP_CHANGE_INPUT,    VIRTKEY, CONTROL, NOINVERT
    "K",		    IDM_OP_LAYER_STACK_DN,  VIRTKEY, CONTROL, NOINVERT
    "K",		    IDM_SAI_SEISEI,		 VIRTKEY, CONTROL, ALT, NOINVERT
    "N",		    IDM_HYOUJIBUHIN,	    VIRTKEY, CONTROL, NOINVERT
    "M",		    IDM_OP_VIEW_MOVE,	   VIRTKEY, CONTROL, NOINVERT
    "O",		    IDM_HASIRASUNPOU,	   VIRTKEY, CONTROL, NOINVERT
    "O",		    IDM_OUTSIDE_PROGRAM_START, VIRTKEY, CONTROL, ALT, 
												    NOINVERT

Will it be necessary to delete "register data" ?


Technical Support May 8, 2009 - 11:56 AM

No, unfortunately we have no such option.

tera tera May 8, 2009 - 6:21 PM

Hello.


I think that there is time when a user wants to reset the setting of the key.

I think that there is time when the setting of user own key cannot understand it.

Why do not you let this function attach?


Thanks,


 

Technical Support May 11, 2009 - 11:38 AM

If you changed the Ctrl+C key for the copy to clipboard a command to something else, then resetting it back is just assigning the Ctrl+C combination again. Everyone knows what is Ctrl+C and what it should do. Microsoft’s application does not have resetting option for particular commands either. We think it’s not needed and very rarely useful.

tera tera May 7, 2009 - 7:21 PM

Hello.


You return an accelerator key for standard setting , Is not there the schedule building a UI menu?


 

Technical Support May 7, 2009 - 1:43 PM

It’s possible to reset all the keyboard accelerators. You should invoke one of the CExtCustomizeSite::MenuInfoGet***() methods first to get a CExtCustomizeSite::CCmdMenuInfo object pointer. Then you should invoke its CExtCustomizeSite::CCmdMenuInfo::AccelTableReset() method to reset the keyboard accelerator maps internally stored . Finally you should invoke the CExtCustomizeSite::OnUpdateAccelGlobalInfo() method which updates the internal MFC accelerator tables from the key mappings stored in the CExtCustomizeSite::CCmdMenuInfo object. This is related both to customizable toolbars/menus and ribbon because the CExtRibbonBar / CExtRibbonPage classes are based on the CExtCustomizeSite class.
The resetting of one accelerator key combination is not supported. But it’s performed in the similar way we described above. You can invoke the CExtCustomizeSite::CCmdMenuInfo::GetMapInitialKey2Cmd() to get the initial keyboard accelerators map. Then you can find initial key combinations assigned to particular command. Then you can invoke the CExtCustomizeSite::CCmdMenuInfo::AccelTableCmdKeyAssign() method to assign the key combination to this command in the current map. Finally you should not forget to invoke the CExtCustomizeSite::OnUpdateAccelGlobalInfo() method to apply changes to MFC’s internal accelerator tables.