Print Page | Close Window

Hot Keys on RibbonBar tabs

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


Topic: Hot Keys on RibbonBar tabs
Posted By: chrisABC
Subject: Hot Keys on RibbonBar tabs
Date Posted: 04 July 2008 at 7:15pm
I have some Tabs in the RibbonBar, and these contain ControlButtons. I have given them Captions with ampersands to denote the Hot Keys, eg &Next

I have set CB.KeyboardCuesUse = xtpKeyboardCuesUseAll = True

But only the Tabs have hot keys (access keys). The buttons on the tabs do not.

Do I need to switch something else on to enable Hot Keys for the buttons?

---------------------------------------------------------------------------------------------
  Later:   OK, I have now found   .KeyBindings      which does work.

But still not found a way to display the Cues (eg show underline) on these buttons.


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



Replies:
Posted By: parcorea
Date Posted: 04 July 2013 at 5:27am
//-----------------------------------------------------------------------
// Summary:
//     Enumerated type used to determine menu underlines.
// Example:
// <code>
// pCommandBars->GetCommandBarsOptions()->ShowKeyboardCues(xtpKeyboardCuesShowWindowsDefault);
// </code>
//-----------------------------------------------------------------------
enum XTPKeyboardCuesShow
{
xtpKeyboardCuesShowAlways,          // Show keyboard cues always
xtpKeyboardCuesShowNever,           // Never show keyboard cues
xtpKeyboardCuesShowWindowsDefault   // System defined.
};



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