Print Page | Close Window

CXTReportRecordItemText::OnChar() problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6568
Printed Date: 12 November 2025 at 9:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTReportRecordItemText::OnChar() problem
Posted By: kangcorn
Subject: CXTReportRecordItemText::OnChar() problem
Date Posted: 06 March 2007 at 8:00am

Hi!

XTP 10.3

I would like to be able to filter the characters entered into a report control cell, therefore I derived an object from CXTReportRecordItemText and override OnChar() but I realized that it is NEVER called ?!?!?!

how can I use this when I need to check entered characters?

thanx in advance!




Replies:
Posted By: mgampi
Date Posted: 06 March 2007 at 8:13am
Hi;
 
Did you call CXTPReportControl::AllowEdit()?


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: kangcorn
Date Posted: 06 March 2007 at 8:58am
hi.
thanks for your advice.
 
yes. i did already like this.
 
>  m_wndReport.AllowEdit(TRUE);
 
But it doesn't work.


Posted By: mgampi
Date Posted: 06 March 2007 at 9:01am
What about any of the OnEdit... functions? Are these functions called when implemented in your derived class?
Perhaps you could then use OnEditVerify to check the user input.


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: kangcorn
Date Posted: 06 March 2007 at 10:11am
thanks for your help.
 
but I found not the OnEditVerify() function.
I must implement this function?
 
 
 


Posted By: sserge
Date Posted: 06 March 2007 at 3:59pm
Hi,

Note that CXTPReportRecordItem::OnChar is called before an inplace edit control is created and activated. After it is activated, there it is called CXTPReportInplaceEdit::OnChar. And you have to override this method if you'd like to customize filtering.

--
WBR,
Serge


Posted By: kangcorn
Date Posted: 07 March 2007 at 5:32pm
good work!!
 
thanks sserge.



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