Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTReportRecordItemText::OnChar() problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTReportRecordItemText::OnChar() problem

 Post Reply Post Reply
Author
Message
kangcorn View Drop Down
Newbie
Newbie


Joined: 02 December 2005
Location: Korea, South
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote kangcorn Quote  Post ReplyReply Direct Link To This Post Topic: CXTReportRecordItemText::OnChar() problem
    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!

Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1210
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kangcorn View Drop Down
Newbie
Newbie


Joined: 02 December 2005
Location: Korea, South
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote kangcorn Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1210
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kangcorn View Drop Down
Newbie
Newbie


Joined: 02 December 2005
Location: Korea, South
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote kangcorn Quote  Post ReplyReply Direct Link To This Post Posted: 06 March 2007 at 10:11am
thanks for your help.
 
but I found not the OnEditVerify() function.
I must implement this function?
 
 
 
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kangcorn View Drop Down
Newbie
Newbie


Joined: 02 December 2005
Location: Korea, South
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote kangcorn Quote  Post ReplyReply Direct Link To This Post Posted: 07 March 2007 at 5:32pm
good work!!
 
thanks sserge.
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.063 seconds.