Print Page | Close Window

How can I get the changed value?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4180
Printed Date: 10 November 2025 at 3:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can I get the changed value?
Posted By: Wisebee
Subject: How can I get the changed value?
Date Posted: 09 May 2006 at 11:20pm

Hi.
Please excuse my poor english.

I try to edit an RecordItem's caption in my CJDataReportView class derived from CXTPReportView.
The code is below.

void CJDataReportView::OnReportItemClick(NMHDR * pNotifyStruct, LRESULT * result)
{
XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct;
CXTPReportControl& wndReport = GetReportCtrl();
XTP_REPORTRECORDITEM_ARGS args(&wndReport, pItemNotify->pRow, pItemNotify->pColumn);
wndReport.EditItem(&args);
}

So like that, I can write over some text. But the problem is I can't get the value changed by InplaceEdit.

What can I do to get the value changed by InplaceEdit?
Do I handle XTP_NM_REPORT_VALUECHANGED message to get it?
(If so, what method or attribute gives the changed value?)



-------------
Be fun~



Replies:
Posted By: Wisebee
Date Posted: 10 May 2006 at 5:49am
CXTPReportControl::GetInplaceEdit()


-------------
Be fun~


Posted By: sserge
Date Posted: 10 May 2006 at 3:55pm
Yep, that's a useful method

However, if you'd like just to catch the changed value of the cell, handling XTP_NM_REPORT_VALUECHANGED would be the best idea. Please look help topic on this. It has an example how to get a new value:

void CPropertiesView::OnReportValueChanged(NMHDR*  pNotifyStruct, LRESULT* /*result*/)
{
    XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct;
//...
   CRecordPropertyInt::GetValue(pItemNotify)


--
WBR,
Serge


Posted By: g_j_a_i_n
Date Posted: 03 June 2006 at 2:49am

Thanks :)



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