Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Context Menu PopUp doesn't show KeyBindings?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Context Menu PopUp doesn't show KeyBindings?

 Post Reply Post Reply
Author
Message
sforces View Drop Down
Groupie
Groupie


Joined: 13 May 2009
Status: Offline
Points: 71
Post Options Post Options   Thanks (0) Thanks(0)   Quote sforces Quote  Post ReplyReply Direct Link To This Post Topic: Context Menu PopUp doesn't show KeyBindings?
    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
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post Posted: 14 September 2012 at 9:17am
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



Back to Top
sforces View Drop Down
Groupie
Groupie


Joined: 13 May 2009
Status: Offline
Points: 71
Post Options Post Options   Thanks (0) Thanks(0)   Quote sforces Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2012 at 12:15pm
Originally posted by Willowmaster Willowmaster wrote:

Try CommandBars.Options.ShowContextMenuAccelerators = True


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
Back to Top
sforces View Drop Down
Groupie
Groupie


Joined: 13 May 2009
Status: Offline
Points: 71
Post Options Post Options   Thanks (0) Thanks(0)   Quote sforces Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2012 at 10:37pm
Anyone else using this has gotten it to work?

Originally posted by sforces sforces wrote:

Originally posted by Willowmaster Willowmaster wrote:

Try CommandBars.Options.ShowContextMenuAccelerators = True


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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.