Can not create my CXTPPropertyGridView |
Post Reply |
Author | |
Sergey
Newbie Joined: 15 November 2004 Status: Offline Points: 18 |
Post Options
Thanks(0)
Posted: 06 April 2005 at 2:54am |
I need to override method CXTPPropertyGrid::CreateView() in order to get notification on CXTPPropertyGridView Set/Kill focus events. However I can not create my view as described below. Unfortunately we can not release our product until we resolve the problem. I created class CXTPPropertyGridEx : public CXTPPropertyGrid and added virtual CXTPPropertyGridView* CreateView() to it. The method CreateView is called from CXTPPropertyGrid construcor. At this point my CXTPPropertyGridEx object was not created yet. That is why the method CXTPPropertyGrid::CreateView() is called rather than CXTPPropertyGridEx::CreateView(). So my CreateView() is not called and I can not create my view and catch events. What is wrong? Thank you in advance. Sergey |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Sorry we didn't test it for this. We will fix it in next release please change it as: 1. make m_pView protected 2. add in constructor of CXTPPropertyGridEx if (m_pView != NULL) { delete m_pView; m_pView = CreateView(); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Sergey
Newbie Joined: 15 November 2004 Status: Offline Points: 18 |
Post Options
Thanks(0)
|
Hi, Thank you for quick reply. I think the same problem exists for CXTPPropertyGridPaintManager that is created in CXTPPropertyGrid constructor. So it must be deleted later when we create own Paint Manager. Sergey. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |