Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - CustomComboList
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CustomComboList

 Post Reply Post Reply
Author
Message
iandenis View Drop Down
Newbie
Newbie


Joined: 26 October 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote iandenis Quote  Post ReplyReply Direct Link To This Post Topic: CustomComboList
    Posted: 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2006 at 2:17am
Why not... Override OnInplaceButtonDown and show popup with CXTPCommandBars::TrackPopupMenu
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
iandenis View Drop Down
Newbie
Newbie


Joined: 26 October 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote iandenis Quote  Post ReplyReply Direct Link To This Post 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);
    .
    .
}
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.125 seconds.