![]() |
CXTReportRecordItemText::OnChar() problem |
Post Reply
|
| Author | |
kangcorn
Newbie
Joined: 02 December 2005 Location: Korea, South Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTReportRecordItemText::OnChar() problemPosted: 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! |
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
kangcorn
Newbie
Joined: 02 December 2005 Location: Korea, South Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
kangcorn
Newbie
Joined: 02 December 2005 Location: Korea, South Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 March 2007 at 10:11am |
|
thanks for your help.
but I found not the OnEditVerify() function.
I must implement this function?
|
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
kangcorn
Newbie
Joined: 02 December 2005 Location: Korea, South Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 March 2007 at 5:32pm |
|
good work!!
thanks sserge.
|
|
![]() |
|
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 |