![]() |
Custom Shortcut Text in Menu |
Post Reply
|
| Author | |
g_j_a_i_n
Groupie
Joined: 27 August 2005 Status: Offline Points: 94 |
Post Options
Thanks(0)
Quote Reply
Topic: Custom Shortcut Text in MenuPosted: 01 September 2006 at 7:51am |
|
Hello I have a menu in which I want to show custom shortcut text. This shortcut text does not exist in accelerator table because the shortcut text is configurable by the user. Example: if the user configures "Ctrl+Shift+F" for finding, then I will show "Find\tCtrl+Shift+F" in the menu. I will modify the menu item using the ModifyMenu API before calling TrackPopupMenu The XTP framework removes the "\tCtrl+Shift+F" text because it is not found in the accelerator table. How do I stop XTP from removing the short text that I have added to the menu. Regards, Gautam Jain |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 September 2006 at 11:43am |
|
Hello,
call
pCommandBars->GetCommandBarsOptions()->bAutoUpdateShortcuts = FALSE
but user will not be able to customize shortcuts...
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
g_j_a_i_n
Groupie
Joined: 27 August 2005 Status: Offline Points: 94 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 September 2006 at 12:35am |
|
Thanks. I got another alternative. In OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl) I write the following code
Regards, Gautam Jain |
|
![]() |
|
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 |