Print Page | Close Window

No accelerator shown for radio button in menu

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=21311
Printed Date: 25 November 2024 at 5:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: No accelerator shown for radio button in menu
Posted By: TomasS
Subject: No accelerator shown for radio button in menu
Date Posted: 15 March 2013 at 11:32am
If I set a command bar control to type xtpControlRadioButton its accelerator/keybinding no longer shows in the menu. Setting it to other types makes it show.
The accelerator still shows in the tooltip of the toolbar if the same command is in there too. The accelerator still works.
How can I get it to show in my menu while still have it as a radio button?

Using 15.3.1 ActiveX in VB6. Implementing as menu and toolbar, not ribbon.

This is how it looks when having the 3 last items as radio buttons:

And this is how it looks when I set them as regular command buttons:



-------------
Xtreme SuitePro (ActiveX) version 17.3.0, 16.3.1
Windows 10 64-bit
Visual Basic 6.0



Replies:
Posted By: TomasS
Date Posted: 16 September 2013 at 4:13am
Still the same problem in 16.2.4...

-------------
Xtreme SuitePro (ActiveX) version 17.3.0, 16.3.1
Windows 10 64-bit
Visual Basic 6.0


Posted By: SuperMario
Date Posted: 23 September 2013 at 9:57am
The code only draws these for buttons.  I'm not sure why you would need radio buttons in a popup menu, why not just check/uncheck the items like is done in allot of the theme popup menus in the samples?


Posted By: TomasS
Date Posted: 25 September 2013 at 5:36am
Well I don't see why your code would only draw it for buttons. The need for keyboard shortcuts does not go away just because they are radio buttons. We have the group of radio buttons both in a menu and the toolbar in our app. F Keys are assigned to all of them. It is important that our users learn to use these keyboard shortcuts and therefore we want them in the menu, since that's where you look for them. We also need to have them as radio buttons since they represent states that can be on and off.
The Keyboard shortcut/Accelerator key/(ie F8, F9 etc) works and can be seen on the radio button tooltip on the toolbar just like the regular buttons, but not in the menu. It's a bug. 
We also do "check" the items using it's Icon but that is not even related to and no replacement for the Keyboard shortcut.


-------------
Xtreme SuitePro (ActiveX) version 17.3.0, 16.3.1
Windows 10 64-bit
Visual Basic 6.0


Posted By: SuperMario
Date Posted: 01 October 2013 at 10:55am
The sources specifically look for buttons only.  So its by design.  I'd have to check the reason why it was limited to only buttons.  I suppose we could add this as a feature, please submit a ticket for this to be added.



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