Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPPropertyGridInplaceButton no show
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGridInplaceButton no show

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


Joined: 27 July 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote FCPM Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGridInplaceButton no show
    Posted: 25 July 2007 at 3:16pm

I use a CXTPPropertygrid to config the settings of a MDI application. Following code 1 works fine using release 1030. But when I build with version 11.3, the combo box inplace button will not show up. When you click on it. It sequentially step through all choices.

I then created a test dialog with simple code 2. It works. But when I move it into a SDI view, the in place button does not show up  either.
 
Any settings I should set?
 
Code 1:
CXTPPropertyGridItem* pATFS = new CXTPPropertyGridItem(_T("Feature Space"), _T("Fixed Dimensions"));
 
CXTPPropertyGridItem* pItemDist = pAT->AddChildItem(pATFS);
CXTPPropertyGridItemConstraints* pList = pItemDist->GetConstraints();
pList->AddConstraint(_T("Fixed Dimensions"));
pList->AddConstraint(_T("Fixed Variance"));
pItemDist->SetFlags(xtpGridItemHasComboButton | xtpGridItemHasEdit);
pATFS ->BindToString(& m_sc.m_atFeatureSpace);
 
Code 2:
 
CXTPPropertyGridItem* pSettings = m_wndPropertyGrid.AddCategory(_T("Document Settings"));
CXTPPropertyGridItem* pItemSaveOnClose = pSettings->AddChildItem(new CXTPPropertyGridItemBool(_T("SaveOnClose"), TRUE));

pSettings->Expand();

 
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 26 July 2007 at 7:08am
Hello,
 
Do you use custom paint manager ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
FCPM View Drop Down
Newbie
Newbie


Joined: 27 July 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote FCPM Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2007 at 9:07am
Thanks for the reply.
 
I am drawing a control myself. So I put in XTP_PGS_OWNERDRAW into the grid windows style. And that cause the problem.
 
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 27 July 2007 at 12:14pm
Hello,
 
yes, please add line

  CRect rcValue(rcCaption.right, rc.top, rc.right, rc.bottom - 1);
  if (!pItem->IsCategory() && bSelected)
   pGrid->GetPaintManager()->DrawInplaceButtons(&dc, pItem, rcValue);
 
to draw buttons in your custom paint manager.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.064 seconds.