Print Page | Close Window

Missing shortcut on the menu and toolbar button

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=19670
Printed Date: 25 September 2024 at 9:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Missing shortcut on the menu and toolbar button
Posted By: Beth
Subject: Missing shortcut on the menu and toolbar button
Date Posted: 19 April 2012 at 2:47pm
We are using commandbar of Xtreme Toolkit Pro Library version 10.1.0.0. We create shortcuts for our commands, but the shortcuts are not shown up on our menu and toolbar button. Anyone knows why?



Replies:
Posted By: rdhd
Date Posted: 01 February 2013 at 5:54pm
You may have to turn them on.

            CXTPCommandBarsOptions* pOptions = pCommandBars->GetCommandBarsOptions();
            if( pOptions )
            {
                pOptions->bDisableCommandIfNoHandler = Options & JDisableCommandIfNoHandler ? TRUE:FALSE;

                if( GetDisplayTooltips() )
                {
                    pOptions->bShowPopupBarToolTips = Options & JShowToolTips ? TRUE:FALSE;
                }
                else
                {
                    // Frame rules supreme.
                    pOptions->bShowPopupBarToolTips = FALSE;
                }

                pOptions->bShowContextMenuAccelerators = TRUE;
                // shortcut (accelerator) text can be shown on a menu. CodeJock will automatically update the text by looking at the default
                // accelerator table for each command on the menu and if an accel is found, the menu text is updated. Some menu trackers have
                // "hard coded" shortcuts. For example a dialog that translates keyins and assumes the key is constant. Disable based
                // on the user input.
                if( Options & JDisableAutoUpdateShortcuts )
                {
                    pOptions->bAutoUpdateShortcuts = FALSE;
                }
                else
                {
                    // Default is to always update.
                    pOptions->bAutoUpdateShortcuts = TRUE;
                }
            }




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