How to clear the CXTPReportFilterEditControl text? |
Post Reply |
Author | |
ocoralan
Groupie Joined: 14 November 2007 Status: Offline Points: 35 |
Post Options
Thanks(0)
Posted: 22 February 2012 at 3:30am |
In the ReportSample example, I opened the filter text dialog and input something in the edit control, the report control populated correctly. But when I closed the filter text dialog, the report control keeps the filtered state. I need the report control recovers to the unfiltered state when I close the filter text dialog whether the content of the edit control is empty or not. How should I do?
Thanks advance.
|
|
unknow
Groupie Joined: 14 January 2009 Location: Belgium Status: Offline Points: 62 |
Post Options
Thanks(0)
|
Hi. I'm also using that behavior in my application; what I did is that I intercept the event before the filter text dialog close, and I set the filter edit control associated text control to ""
Like this : m_myDlgBar.GetDlgItem(IDC_FILTEREDIT)->SetWindowText(""); where IDC_FILTEREDIT is a CXTPReportFilterEditControl. Hope that helps ;)
|
|
mdelar2009
Newbie Joined: 26 March 2013 Location: Miami Status: Offline Points: 1 |
Post Options
Thanks(0)
|
m_filter.SetWindowText("");
|
|
readme.txt are for cowards, be brave, running...
|
|
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 |