Print Page | Close Window

OnChar event

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=12656
Printed Date: 17 December 2024 at 9:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OnChar event
Posted By: adico
Subject: OnChar event
Date 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!



Replies:
Posted By: mdoubson
Date Posted: 06 January 2009 at 1:24pm
read the topic https://forum.codejock.com/forum_posts.asp?TID=12975 - 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.



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