Print Page | Close Window

CXTPPropertyGrid and property pages

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3985
Printed Date: 24 April 2024 at 7:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyGrid and property pages
Posted By: tmolander
Subject: CXTPPropertyGrid and property pages
Date Posted: 11 April 2006 at 8:01am

I need to use CXTPPropertyGrid control in CPropertyPage derived class.

When testing my property page I found out that I cannot get to the controls in property sheet with TAB i.e. to OK and Cancel buttons which are located in the sheet and not in the page. If I insert controls into the page I can get to those with TAB though.

The same behaviour can be seen in PropertyGrid's OwnerDraw sample (included with Xtreme Toolkit Pro v9.81 which I am using).

Does anyone have a fix or workaround?

Thanks.

 




Replies:
Posted By: Oleg
Date Posted: 12 April 2006 at 8:16am

Thank you,

please replace this method:

CWnd* CXTPPropertyGrid::GetNextGridTabItem(BOOL bForward)
{
 CWnd* pThis = this;
 CWnd* pParent = pThis->GetParent();

 if (!pThis || !pParent)
 {
  ASSERT(FALSE);
  return 0 ;
 }
 
 if ((pParent->GetExStyle() & WS_EX_CONTROLPARENT) && (pParent->GetStyle() & WS_CHILD))
 { 
  pParent = pParent->GetParent();
 }

 CWnd* pNextItem = pParent->GetNextDlgTabItem(pThis, bForward);

 if (pNextItem == pThis)
  return NULL;

 return pNextItem;
}



-------------
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