Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Missing shortcut on the menu and toolbar button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Missing shortcut on the menu and toolbar button

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


Joined: 10 December 2004
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Beth Quote  Post ReplyReply Direct Link To This Post Topic: Missing shortcut on the menu and toolbar button
    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?
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post 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;
                }
            }

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.188 seconds.