Print Page | Close Window

filtertext in virtualmode

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=15025
Printed Date: 15 November 2024 at 7:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: filtertext in virtualmode
Posted By: joeliner
Subject: filtertext in virtualmode
Date Posted: 22 August 2009 at 6:54am
is this possible?

-------------
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3
Language: Visual Basic 6 SP6



Replies:
Posted By: mdoubson
Date Posted: 22 August 2009 at 11:13am

https://forum.codejock.com/uploads/DemoVersion/EditVirtualListIconStatic.rar - https://forum.codejock.com/uploads/DemoVersion/EditVirtualListIconStatic.rar  demonstrate use of ReportControl.FilterText but app support it - not Core



-------------
Mark Doubson, Ph.D.


Posted By: Russ
Date Posted: 27 September 2009 at 2:19am
Hello,

can you please share the source code of the sample? The archive contains only executable and it fails to statrt on my end. Thank you.

Edited: I am using Xtreme Toolkit Pro 12.1


Posted By: mdoubson
Date Posted: 28 September 2009 at 11:25am
Sorry - this is 13.2 code based sample

-------------
Mark Doubson, Ph.D.


Posted By: Russ
Date Posted: 28 September 2009 at 12:28pm
Hi,

well, my bet was on this --> "demonstrate use of ReportControl.FilterText but app support it - not Core"


Posted By: mdoubson
Date Posted: 28 September 2009 at 4:09pm

void CVirtualRecord::GetItemMetrics(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pItemMetrics) {

..........................................................................
CString sFilter = pView->GetReportCtrl().GetFilterText();

CString sText = pItemMetrics->strText;

if (!sFilter.IsEmpty() && sText.MakeLower().Find(sFilter.MakeLower()) > -1)

{

pItemMetrics->clrForeground = RGB(0,0,255);

}



-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net