Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC
  New Posts New Posts RSS Feed - OnChar event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedOnChar event

 Post Reply Post Reply
Author
Message
adico View Drop Down
Groupie
Groupie
Avatar

Joined: 20 April 2006
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote adico Quote  Post ReplyReply Direct Link To This Post Topic: OnChar event
    Posted: 11 November 2008 at 12:15pm
Is there a way to capture the OnChar event of a  CXTPReportRecordItem?

I am currently overriding CXTPReportRecordItemText
inside header I have overridden the following:
    virtual void OnBeginEdit(XTP_REPORTRECORDITEM_ARGS* pItemArgs);
   virtual BOOL OnChar(XTP_REPORTRECORDITEM_ARGS* pItemArgs, UINT nChar);

in the .cpp file, the code hits the breakpoint inside OnBeginEdit but not inside OnChar method.

Am I missing something ? Please advise

I am not my memories...I am my dreams!
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 06 January 2009 at 1:24pm
read the topic https://forum.codejock.com/forum_posts.asp?TID=12975
It will help you to manage user entry validation, auto-correction and recover selection for non-confirmed OnEditChanging cases.
You don't need to capture OnChar - use CXTPReportRecordItemText, CXTPReportRecordItemNumber, etc and CXTPReportInplaceEdit as a base class for you and overwrite OnEditChanging function.
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.188 seconds.