Missing shortcut on the menu and toolbar button |
Post Reply |
Author | |
Beth
Groupie Joined: 10 December 2004 Status: Offline Points: 10 |
Post Options
Thanks(0)
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?
|
|
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
|
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; } } |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |