Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - How to clear the CXTPReportFilterEditControl text?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to clear the CXTPReportFilterEditControl text?

 Post Reply Post Reply
Author
Message
ocoralan View Drop Down
Groupie
Groupie


Joined: 14 November 2007
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote ocoralan Quote  Post ReplyReply Direct Link To This Post Topic: How to clear the CXTPReportFilterEditControl text?
    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.
Back to Top
unknow View Drop Down
Groupie
Groupie
Avatar

Joined: 14 January 2009
Location: Belgium
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote unknow Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 2012 at 4:58pm
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 ;)
Back to Top
mdelar2009 View Drop Down
Newbie
Newbie
Avatar

Joined: 26 March 2013
Location: Miami
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdelar2009 Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2013 at 5:32pm
m_filter.SetWindowText("");

readme.txt are for cowards, be brave, running...
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.160 seconds.