Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Constraint Combo Not Shown..
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Constraint Combo Not Shown..

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


Joined: 20 June 2005
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote MLatimer Quote  Post ReplyReply Direct Link To This Post Topic: Constraint Combo Not Shown..
    Posted: 26 August 2005 at 9:13am
When we add constraints to an item in the grid,  the pull-down combo list is not always shown. It is shown behind the main dialog!

In some cases double clicking in the edit dox with cycle to the next item in the list, but not always.

The prop-grid is created...
CRect rc;
m_wndPlaceHolder.GetWindowRect( &rc );
ScreenToClient( &rc );

 // create the property grid.
if ( m_wndPropertyGrid.Create( rc, this, IDC_PROPERTY_GRID ) )
{
         LOGFONT lf;
        GetFont()->GetLogFont( &lf );
}

CXTPPropertyGridItem* pStandard   =      m_wn dPropertyGrid.AddCategory(_T("Feature Details"));

pItem = pStandard->AddChildItem(new CXTPPropertyGridItem(sPrompt, ""));

CStringList strList;
thLoadStringValueList(m_sFeatureFile, sCatName + "_values", &strList);
CXTPPropertyGridItemConstraints* pList = pItem->GetConstraints();

// .... Adding Items Here  .... /////

pItem->SetFlags(xtpGridItemHasComboButton | xtpGridItemHasEdit);


Note the list "poking out" from below the dialog, this list is the constraint list.





Edited by MLatimer
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: 26 August 2005 at 12:42pm
hmmm. does dialog  have "Always on Top" style? What version do you have?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MLatimer View Drop Down
Newbie
Newbie


Joined: 20 June 2005
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote MLatimer Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2005 at 2:49am
Oleg

The dialog itself was not on top style, but the parent that called the dialog (with a DoModal) was. Im not sure how that affected it but by reseting to "wndNoTopMost" before the DoModal (and reseting after) solved the problem.

What is the best way to check the version number?

Regards
Mark
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 August 2005 at 5:13am

Hi,

it presented in XTPVersion.h file.

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.211 seconds.