![]()  | 
 
Shortcuts in Menus inside dialogs | 
 
    Post Reply  
   | 
  
| Author | |
   
   Uwe Keim  
   
   Newbie  
   Joined: 01 November 2004 Location: Germany Status: Offline Points: 29  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Shortcuts in Menus inside dialogsPosted: 08 July 2005 at 2:27am  | 
 
| 
   
    Dear support, maybe you can help me: I derived and replaced CXTPShortcutManager in order to implement the automatic drawing of shortcut-texts in menus inside dialogs. Unfortunately the function CXTPPopupBar::UpdateShortcuts which actually calls the shortcut manager starts with: void CXTPPopupBar::UpdateShortcuts() This GetFrameSite returns NULL, because I am inside a dialog, not inside a frame window. Question: Is there a workaround/other solution for this? I came that far, I would really be disappointed if I must end here... Thanks  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 08 July 2005 at 5:50am | 
 
| 
   
    Last version (9.70) of CXTPPopupBar::UpdateShortcuts look like: void CXTPPopupBar::UpdateShortcuts()  if  (!pCommandBars->GetCommandBarsOptions()->bAutoUpdateSh ortcuts)  foreach (pControl, TRUE)  | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   Uwe Keim  
   
   Newbie  
   Joined: 01 November 2004 Location: Germany Status: Offline Points: 29  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 08 July 2005 at 7:43am | 
 
| 
   
    Cool, thank you!  I will download immediately.  | 
 |
![]()  | 
 |
   
   Uwe Keim  
   
   Newbie  
   Joined: 01 November 2004 Location: Germany Status: Offline Points: 29  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 08 July 2005 at 9:39am | 
 
| 
   
    OK, now I upgraded, but the GetCommandBars() function at the top of: void CXTPPopupBar::UpdateShortcuts() Always returns a NULL pointer inside my dialog-hosted menu bar. Question: Any chance of getting the shortcut-manager called inside a dialog? Of course I'm continuing to research, but maybe you still can help. Thanks  | 
 |
![]()  | 
 |
    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  |