![]()  | 
 
CustomComboList | 
 
    Post Reply  
   | 
  
| Author | |
   
   iandenis  
   
   Newbie  
   Joined: 26 October 2006 Status: Offline Points: 6  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: CustomComboListPosted: 29 November 2006 at 5:27pm  | 
 
| 
   
    
   Hello,
 
   
  Is there anyway to use a custom popup like CXTPPopupToolBar in OnInplaceButtonDown?  Something like what is done for Property Grid Sample's CustomCombolist with CXTColorSelectorCtrl but I am looking for a popup tool bar instead. 
Thx. 
Ian 
    | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 30 November 2006 at 2:17am | 
 
| 
   
    
   Why not... Override OnInplaceButtonDown and show popup with CXTPCommandBars::TrackPopupMenu
    
   
   | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   iandenis  
   
   Newbie  
   Joined: 26 October 2006 Status: Offline Points: 6  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 30 November 2006 at 7:19pm | 
 
| 
   
    Thank you. That seems to be working out with single monitor. I was trying to reuse an existing CXTPPopupToolBar originally tied with a dropdown button within a tab toolbar. The pointer was exposed and past into TrackPopupMenu. Everything seems to be fine until the CXTPPopupToolBar is called from the dropdown button. The bar fails to display at the expected location when calling it again from the property grid floating in the second display. The calculated Rect for TrackPopupMenu seems to be correct even when the bar is displayed at a wrong position. Here is my code fragment. 
void CCustomItemColor::OnInplaceButtonDown() 
{ 
    CRect rcItem= GetItemRect(); 
    m_pGrid->ClientToScreen(&rcItem); 
    rcItem.left = rcItem.right - 202;  
    CXTPPopupToolBar* pPopup = ((CMainFrame*)AfxGetMainWnd())->m_pPopupBarFill; 
    int nCommand = CXTPCommandBars::TrackPopupMenu(pPopup, TPM_RIGHTBUTTON|TPM_NONOTIFY|TPM_RETURNCMD, rcItem.left, rcItem.bottom, m_pGrid); 
    . 
    . 
} 
    | 
 |
![]()  | 
 |
    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  |