Print Page | Close Window

Constraint Combo Not Shown..

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=2794
Printed Date: 04 June 2024 at 4:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Constraint Combo Not Shown..
Posted By: MLatimer
Subject: Constraint Combo Not Shown..
Date 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.






Replies:
Posted By: Oleg
Date 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


Posted By: MLatimer
Date 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


Posted By: Oleg
Date Posted: 30 August 2005 at 5:13am

Hi,

it presented in XTPVersion.h file.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net