Context Menu PopUp doesn't show KeyBindings? |
Post Reply |
Author | ||
sforces
Groupie Joined: 13 May 2009 Status: Offline Points: 71 |
Post Options
Thanks(0)
Posted: 08 September 2012 at 3:17pm |
|
Using version 15.3.1. The screen shot in the helpfile for CommandBarsContextMenus Collection shows a context menu with the shortcut (i.e. Ctrl+C). But how do you achieve this?
I thought that KeyBindings was supposed to be a universal approach that would show the shortcut text in RibbonBars, Context Menus / Pop Up Menus, etc. if the ID was the same. But It appears that the KeyBindings that are assigned show up in RibbonBar but not on Context Menu / Pop Up menu. If I explicitly set the ShortcutText for a control in the Context Menu, then it will display. But per the help file: This property is obsolete and is not used anymore. Use a combination of TooltipText and ToolbarAccelTips instead. Am I missing something here or is this a bug? |
||
Product: Xtreme Suite Pro (ActiveX) version 16.3.1
Platform: Windows XP SP3 (32bit) Language: Visual Basic 6.0 SP6 |
||
Willowmaster
Senior Member Joined: 12 July 2010 Location: Netherlands Status: Offline Points: 180 |
Post Options
Thanks(0)
|
|
Try CommandBars.Options.ShowContextMenuAccelerators = True
|
||
Product: Xtreme SuitePro (ActiveX) version 15.3.1
Platform: Windows XP (32bit) - SP 3 (on VMWare) Language: Visual Basic 6.0 |
||
sforces
Groupie Joined: 13 May 2009 Status: Offline Points: 71 |
Post Options
Thanks(0)
|
|
I thought that would do it too, but it has no affect on popup / context menus. Here's a snippet of what I'm doing: CommandBars1.KeyBindings.Add FCONTROL, Asc("X"), ID_EDIT_CUT CommandBars1.KeyBindings.Add FCONTROL, Asc("C"), ID_EDIT_COPY CommandBars1.KeyBindings.Add FCONTROL, Asc("V"), ID_EDIT_PASTE CommandBars1.Options.ShowContextMenuAccelerators = True The keyboard accelerators used above show up properly in the RibbonBar but not in the popup / context menus. |
||
Product: Xtreme Suite Pro (ActiveX) version 16.3.1
Platform: Windows XP SP3 (32bit) Language: Visual Basic 6.0 SP6 |
||
sforces
Groupie Joined: 13 May 2009 Status: Offline Points: 71 |
Post Options
Thanks(0)
|
|
Anyone else using this has gotten it to work?
|
||
Product: Xtreme Suite Pro (ActiveX) version 16.3.1
Platform: Windows XP SP3 (32bit) Language: Visual Basic 6.0 SP6 |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |