Print Page | Close Window

Context Menu PopUp doesn't show KeyBindings?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=20115
Printed Date: 29 September 2024 at 10:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Context Menu PopUp doesn't show KeyBindings?
Posted By: sforces
Subject: Context Menu PopUp doesn't show KeyBindings?
Date 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



Replies:
Posted By: Willowmaster
Date 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





Posted By: sforces
Date 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


Posted By: sforces
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net