![]() |
CXTPReportFilterEditControl in toolbar |
Post Reply
|
| Author | |
markr
Senior Member
Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPReportFilterEditControl in toolbarPosted: 23 March 2005 at 8:14pm |
|
I'm wondering if anyone has any sample code for how I might embed a
CXTPReportFilterEditControl object into my CXTPToolBar. I'm running
eXtreme Toolkit PRo v9.51.
Even a quick run-down of the necessary steps would be greatly appreciated. Thanks! |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2005 at 1:25am |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
markr
Senior Member
Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2005 at 9:54am |
|
Thanks, Oleg. This looks like exactly what I needed.
|
|
![]() |
|
unicef
Newbie
Joined: 17 February 2005 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 March 2005 at 9:39am |
|
Here is my solution. The advantage is that you don't need to press
enter to trigger filter action. It filters whenever you input a
character.
class CMyReportView : public CXTPReportView { ... CXTPReportFilterEditControl m_wndFilterEdit; ... } int CMyReportView::OnCreate(LPCREATESTRUCT lpCreateStruct) { ... if (!m_wndFilterEdit.Create(WS_TABSTOP | WS_CHILD | WS_VISIBLE | WS_BORDER, CRect(0, 0, 80, 20), this, ID_EDIT_FILTER)) return -1; m_wndReport.GetColumns()->GetReportHeader()->SetFilter EditCtrl(&m_wndFilterEdit); ... } int CMyReportView::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl) { if( lpCreateControl->bToolBar ) { if( lpCreateControl->nID == ID_EDIT_FILTER ) { if( lpCreateControl->pControl ) return TRUE; CXTPControlCustom* pControlFilter = CXTPControlCustom::CreateControlCustom(&m_wndFilterEd it); lpCreateControl->pControl = pControlFilter; } } return FALSE; } |
|
![]() |
|
markr
Senior Member
Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 March 2005 at 2:32pm |
|
Thanks for that code snippet. Unfortunately, I already implemented it
the other way, and am now too lazy to change it again. ;-)
|
|
![]() |
|
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 |