Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - How to validate item text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to validate item text

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

Joined: 17 April 2009
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote schwinn Quote  Post ReplyReply Direct Link To This Post Topic: How to validate item text
    Posted: 15 April 2013 at 12:10pm
Hi Folks
 
I need to validate the CXTPReportRecordItem in report control in tree mode. If the text is no good I would like to display in a balloon tip in the edit control as well
 
When the user is typing text, I can display a balloon tip in OnEditChanging but my validation requires pinging a database to see if the entered text is allowed. So not a good place here to validate since every character typed would ping the database.
 
I cannot show a ballon tip in OnEditChanged, my guess is because OnEnKillFocus has occured.
 
Can anyone tell me the correct mechanism. I have caught XTP_NM_REPORT_VALUECHANGED but the edit control has gone.
So in short overridding
1. OnChanging, no good, I cannot keep pinging the database.
2. OnChanged / OnValidateEdit, cannot get a balloon tip to display, due to KillFocus?
3. Catching XTP_NM_REPORT_VALUECHANGED still cannot display a balloon tip in the edit.
 
Anyone help please...
 
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.172 seconds.