Print Page | Close Window

how to edit in-place button item

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=10053
Printed Date: 15 November 2024 at 6:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to edit in-place button item
Posted By: juwei
Subject: how to edit in-place button item
Date Posted: 03 April 2008 at 2:26am

I inherit the class CXTPReportRecordItem in order to realize  in-place button. But  how do I edit this item?

class CReportButtonItem:public CXTPReportRecordItem
{
public:
 CReportButtonItem(CString str_TemplateName)
 {
  GetEditOptions(NULL)->m_bConstraintEdit = TRUE;
  GetEditOptions(NULL)->AddConstraint(_T(str_TemplateName), 0);
  GetEditOptions(NULL)->AddExpandButton();
 }
 CString GetCaption(CXTPReportColumn* /*pColumn*/)
 {
  int i = 0;
  CXTPReportRecordItemConstraint* pConstraint = GetEditOptions(NULL)->FindConstraint(i);
  ASSERT(pConstraint);
  return pConstraint->m_strConstraint;
 }
 virtual void OnInplaceButtonDown(CXTPReportInplaceButton* pButton)
 {
 }
}



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