Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPPropertyGrid and property pages
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGrid and property pages

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


Joined: 11 April 2006
Location: Finland
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote tmolander Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGrid and property pages
    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.

 

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: 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
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.141 seconds.